a148fa797a
This gives KnownAddress a sync.RWMutex so the exported methods may safely access the na (*wire.NetAddress) and lastattempt fields. The AddrManager is updated to lock the new KnownAddress mutex before assigning to na or lastattempt. The other KnownAddress fields are only accessed by AddrManager, using its own Mutex for synchronization. |
||
---|---|---|
.. | ||
addrmanager.go | ||
addrmanager_internal_test.go | ||
addrmanager_test.go | ||
cov_report.sh | ||
doc.go | ||
internal_test.go | ||
knownaddress.go | ||
knownaddress_test.go | ||
log.go | ||
network.go | ||
network_test.go | ||
test_coverage.txt |