memoryAddrBook: document gc precondition
@@ -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) {
