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

Commit e952b37

Browse files
remove deprecated constructor for the insecure transport (#206)
1 parent 8c04ed1 commit e952b37

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

sec/insecure/insecure.go

+1-9
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,7 @@ type Transport struct {
3131
key ci.PrivKey
3232
}
3333

34-
// New constructs a new insecure transport.
35-
// Deprecated: use NewWithIdentity instead.
36-
func New(id peer.ID) *Transport {
37-
return &Transport{
38-
id: id,
39-
}
40-
}
41-
42-
// New constructs a new insecure transport. The provided private key
34+
// NewWithIdentity constructs a new insecure transport. The provided private key
4335
// is stored and returned from LocalPrivateKey to satisfy the
4436
// SecureTransport interface, and the public key is sent to
4537
// remote peers. No security is provided.

0 commit comments

Comments
 (0)