mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-12-22 16:07:31 +00:00
Revert "Fix build"
This reverts commit e09ca6a089cbb138e7743931f34fe766bf062bd6.
This commit is contained in:
parent
e09ca6a089
commit
48bf0ce210
@ -485,14 +485,12 @@ func (c *Core) RemovePeer(addr string, sintf string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
c.peers.Act(nil, func() {
|
ports := c.peers.ports.Load().(map[switchPort]*peer)
|
||||||
ports := c.peers.ports
|
for p, peer := range ports {
|
||||||
for _, peer := range ports {
|
if addr == peer.intf.name {
|
||||||
if addr == peer.intf.name() {
|
c.peers.removePeer(p)
|
||||||
c.peers._removePeer(peer)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user