Commit 9316acfa authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

p2p/peer/peerstore: mu position + comment

parent 50c72a67
......@@ -62,9 +62,10 @@ func (e *expiringAddr) Expired() bool {
type addressMap map[string]expiringAddr
type addressbook struct {
sync.RWMutex // guards all fields
addrs map[ID]addressMap
ttl time.Duration // initial ttl
sync.RWMutex
}
func newAddressbook() *addressbook {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment