Eliminate MacCache Start method

This commit is contained in:
David Wragg committed 2015-06-23 16:08:43 +01:00
1 parent a311623bb9
commit d6bceb139e
2 files changed
+2 -5

No files matched your search

+2 -4
View File
@@ -22,14 +22,12 @@ type MacCache struct {
}
func NewMacCache(maxAge time.Duration, onExpiry func(net.HardwareAddr, *Peer)) *MacCache {
return &MacCache{
cache := &MacCache{
table: make(map[uint64]*MacCacheEntry),
maxAge: maxAge,
onExpiry: onExpiry}
}
func (cache *MacCache) Start() {
cache.setExpiryTimer()
return cache
}
func (cache *MacCache) Enter(mac net.HardwareAddr, peer *Peer) bool {
-1
View File
@@ -96,7 +96,6 @@ func (router *Router) Start() {
checkFatal(err)
}
router.Ourself.Start()
router.Macs.Start()
router.Routes.Start()
router.ConnectionMaker.Start()
router.UDPListener = router.listenUDP(router.Port, po)