mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-13 17:36:28 +00:00
Remove unnecessary selects
This commit is contained in:
@ -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{})
|
||||
|
Reference in New Issue
Block a user