mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-01-30 05:10:08 +08:00
Clarify comment for tick function
This commit is contained in:
parent
cfbbb58a31
commit
fe121a4c3e
@ -246,7 +246,7 @@ func (mgr *ttlmanager) stop() {
|
||||
<-mgr.done
|
||||
}
|
||||
|
||||
// For internal use only
|
||||
// To be called by TTL manager's coroutine only.
|
||||
func (mgr *ttlmanager) tick() {
|
||||
mgr.RLock()
|
||||
defer mgr.RUnlock()
|
||||
|
Loading…
Reference in New Issue
Block a user