mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-03 09:37:47 +00:00
Remove unnecessary selects
This commit is contained in:
@ -53,10 +53,8 @@ func (s *searches) init(core *Core) {
|
||||
s.reconfigure = make(chan chan error, 1)
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case e := <-s.reconfigure:
|
||||
e <- nil
|
||||
}
|
||||
e := <-s.reconfigure
|
||||
e <- nil
|
||||
}
|
||||
}()
|
||||
s.searches = make(map[crypto.NodeID]*searchInfo)
|
||||
|
Reference in New Issue
Block a user