remove deprecated constructor for the insecure transport (#206)

This commit is contained in:
Marten Seemann 2021-07-22 21:16:57 +02:00 committed by GitHub
parent 8c04ed1323
commit e952b3702c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.