mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 19:37:46 +08:00
p2p/conn: expose io.Closer interface
This commit is contained in:
parent
5a8aa1afcf
commit
fc78f20093
@ -18,6 +18,8 @@ import (
|
||||
type Map map[u.Key]Conn
|
||||
|
||||
type PeerConn interface {
|
||||
io.Closer
|
||||
|
||||
// LocalPeer (this side) ID, PrivateKey, and Address
|
||||
LocalPeer() peer.ID
|
||||
LocalPrivateKey() ic.PrivKey
|
||||
@ -45,7 +47,6 @@ type Conn interface {
|
||||
|
||||
msgio.Reader
|
||||
msgio.Writer
|
||||
io.Closer
|
||||
}
|
||||
|
||||
// Dialer is an object that can open connections. We could have a "convenience"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user