chore(core): fix function name in interface comment (#3056)

Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
This commit is contained in:
wangjingcun
2024-12-03 03:11:36 +08:00
committed by GitHub
parent 8423de3a64
commit eb77766383
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ type ConnManager interface {
// TagPeer tags a peer with a string, associating a weight with the tag.
TagPeer(peer.ID, string, int)
// Untag removes the tagged value from the peer.
// UntagPeer removes the tagged value from the peer.
UntagPeer(p peer.ID, tag string)
// UpsertTag updates an existing tag or inserts a new one.

View File

@@ -28,10 +28,10 @@ type Host interface {
// Peerstore returns the Host's repository of Peer Addresses and Keys.
Peerstore() peerstore.Peerstore
// Returns the listen addresses of the Host
// Addrs returns the listen addresses of the Host
Addrs() []ma.Multiaddr
// Networks returns the Network interface of the Host
// Network returns the Network interface of the Host
Network() network.Network
// Mux returns the Mux multiplexing incoming streams to protocol handlers