memoryAddrBook: document gc precondition

This commit is contained in:
Steven Allen
2018-10-03 17:42:54 -07:00
committed by GitHub
parent e3a2970d93
commit 6daee68364

View File

@@ -45,6 +45,7 @@ func NewAddrBook() pstore.AddrBook {
}
}
// gc garbage collects the in-memory address book. The caller *must* hold the addrmu lock.
func (mab *memoryAddrBook) gc() {
now := time.Now()
if !now.After(mab.nextGC) {