From eb77766383dc3be1d18efd8810a51d3dceb33225 Mon Sep 17 00:00:00 2001 From: wangjingcun Date: Tue, 3 Dec 2024 03:11:36 +0800 Subject: [PATCH] chore(core): fix function name in interface comment (#3056) Signed-off-by: wangjingcun --- core/connmgr/manager.go | 2 +- core/host/host.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/connmgr/manager.go b/core/connmgr/manager.go index d756e4399f..c4d796b39a 100644 --- a/core/connmgr/manager.go +++ b/core/connmgr/manager.go @@ -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. diff --git a/core/host/host.go b/core/host/host.go index 0a8dbe4b0c..ca0a7e00d9 100644 --- a/core/host/host.go +++ b/core/host/host.go @@ -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