mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-25 12:50:08 +08:00
remove deprecated constructor for the insecure transport (#206)
This commit is contained in:
parent
8c04ed1323
commit
e952b3702c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user