Remove unnecessary selects

This commit is contained in:
Neil Alexander 2019-01-15 08:51:19 +00:00
parent 39567bed83
commit 2cd373fc1e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
8 changed files with 52 additions and 68 deletions

View file

@ -82,10 +82,8 @@ func (t *dht) init(c *Core) {
t.reconfigure = make(chan chan error, 1)
go func() {
for {
select {
case e := <-t.reconfigure:
e <- nil
}
e := <-t.reconfigure
e <- nil
}
}()
t.nodeID = *t.core.GetNodeID()