mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-03-29 13:40:07 +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
|
<-mgr.done
|
||||||
}
|
}
|
||||||
|
|
||||||
// For internal use only
|
// To be called by TTL manager's coroutine only.
|
||||||
func (mgr *ttlmanager) tick() {
|
func (mgr *ttlmanager) tick() {
|
||||||
mgr.RLock()
|
mgr.RLock()
|
||||||
defer mgr.RUnlock()
|
defer mgr.RUnlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user