Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

remove deprecated constructor for the insecure transport #206

Merged
merged 1 commit into from Jul 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 1 addition & 9 deletions sec/insecure/insecure.go
Expand Up @@ -31,15 +31,7 @@ type Transport struct {
key ci.PrivKey
}

// New constructs a new insecure transport.
// Deprecated: use NewWithIdentity instead.
func New(id peer.ID) *Transport {
return &Transport{
id: id,
}
}

// New constructs a new insecure transport. The provided private key
// NewWithIdentity constructs a new insecure transport. The provided private key
// is stored and returned from LocalPrivateKey to satisfy the
// SecureTransport interface, and the public key is sent to
// remote peers. No security is provided.
Expand Down