5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-09-20 03:42:32 +00:00

switch cleanup

This commit is contained in:
Arceliar 2018-05-16 17:48:53 -05:00
parent 6b51b44cbf
commit d98640fd59

View File

@ -128,7 +128,6 @@ type switchMessage struct {
type switchPort uint64
type tableElem struct {
port switchPort
//firstSeen time.Time
locator switchLocator
}
@ -304,7 +303,6 @@ func (t *switchTable) handleMessage(msg *switchMessage, fromPort switchPort, sig
doUpdate := false
if !equiv(&msg.locator, &oldSender.locator) {
doUpdate = true
//sender.firstSeen = now
}
t.data.peers[fromPort] = sender
updateRoot := false
@ -396,9 +394,6 @@ func (t *switchTable) updateTable() {
loc.coords = loc.coords[:len(loc.coords)-1] // Remove the them->self link
newTable.elems = append(newTable.elems, tableElem{
locator: loc,
//degree: pinfo.degree,
//firstSeen: pinfo.firstSeen,
//forward: pinfo.forward,
port: pinfo.port,
})
}