4
0
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:
Neil Alexander
2019-01-15 08:51:19 +00:00
parent 39567bed83
commit 2cd373fc1e
8 changed files with 52 additions and 68 deletions

View File

@ -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)