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

Commit

Permalink
remove deprecated constructor for the insecure transport (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jul 22, 2021
1 parent 8c04ed1 commit e952b37
Showing 1 changed file with 1 addition and 9 deletions.
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

0 comments on commit e952b37

Please sign in to comment.