mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
remove old switchMessage and clean up related code
This commit is contained in:
parent
00e4da28c7
commit
f8ba80e7d8
2 changed files with 32 additions and 66 deletions
|
@ -319,7 +319,6 @@ func (p *peer) handleSwitchMsg(packet []byte) {
|
|||
panic("FIXME testing")
|
||||
return
|
||||
}
|
||||
var info switchMessage
|
||||
var loc switchLocator
|
||||
prevKey := msg.Root
|
||||
for idx, hop := range msg.Hops {
|
||||
|
@ -335,7 +334,7 @@ func (p *peer) handleSwitchMsg(packet []byte) {
|
|||
}
|
||||
prevKey = hop.Next
|
||||
}
|
||||
p.core.switchTable.handleMsg(&msg, &info, p.port)
|
||||
p.core.switchTable.handleMsg(&msg, p.port)
|
||||
// Pass a mesage to the dht informing it that this peer (still) exists
|
||||
loc.coords = loc.coords[:len(loc.coords)-1]
|
||||
dinfo := dhtInfo{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue