mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25: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
|
@ -92,7 +92,7 @@ func (c *Conn) setMTU(from phony.Actor, mtu uint16) {
|
|||
func (c *Conn) search() error {
|
||||
var sinfo *searchInfo
|
||||
var isIn bool
|
||||
phony.Block(c.core.router, func() {
|
||||
phony.Block(&c.core.router, func() {
|
||||
sinfo, isIn = c.core.router.searches.searches[*c.nodeID]
|
||||
})
|
||||
if !isIn {
|
||||
|
@ -108,7 +108,7 @@ func (c *Conn) search() error {
|
|||
default:
|
||||
}
|
||||
}
|
||||
phony.Block(c.core.router, func() {
|
||||
phony.Block(&c.core.router, func() {
|
||||
sinfo = c.core.router.searches.newIterSearch(c.nodeID, c.nodeMask, searchCompleted)
|
||||
sinfo.continueSearch()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue