refactor: rename PeerCache to Peers

It was never much of a cache, and that aspect of it is certainly not
its defining characteristic.
This commit is contained in:
Matthias Radestock committed 2014-12-24 19:23:43 +00:00
1 parent e8f836ad85
commit 2b2f47c031
4 files changed
+66 -67

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ func NewRouter(iface *net.Interface, name PeerName, password []byte, connLimit i
router := &Router{
Iface: iface,
Macs: NewMacCache(macMaxAge, onMacExpiry),
Peers: NewPeerCache(onPeerGC),
Peers: NewPeers(onPeerGC),
ConnLimit: connLimit,
BufSz: bufSz,
LogFrame: logFrame}