mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Remove unnecessary selects
This commit is contained in:
parent
39567bed83
commit
2cd373fc1e
8 changed files with 52 additions and 68 deletions
|
@ -35,10 +35,8 @@ func (ps *peers) init(c *Core) {
|
|||
ps.reconfigure = make(chan chan error, 1)
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case e := <-ps.reconfigure:
|
||||
e <- nil
|
||||
}
|
||||
e := <-ps.reconfigure
|
||||
e <- nil
|
||||
}
|
||||
}()
|
||||
ps.allowedEncryptionPublicKeys = make(map[crypto.BoxPubKey]struct{})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue