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