mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Pointer receivers for phony.Block
This commit is contained in:
parent
5d7d84f827
commit
607c906820
4 changed files with 9 additions and 9 deletions
|
@ -149,7 +149,7 @@ func (ps *peers) removePeer(port switchPort) {
|
|||
if port == 0 {
|
||||
return
|
||||
} // Can't remove self peer
|
||||
phony.Block(ps.core.router, func() {
|
||||
phony.Block(&ps.core.router, func() {
|
||||
ps.core.switchTable.forgetPeer(port)
|
||||
})
|
||||
ps.mutex.Lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue