a couple race fixes and use timer.AfterFunc instead of sleeping goroutines or ticker in a few places

This commit is contained in:
Arceliar 2019-08-25 17:00:02 -05:00
parent a3d4d8125b
commit 502f2937a9
11 changed files with 66 additions and 98 deletions

View file

@ -200,10 +200,8 @@ func (t *switchTable) init(core *Core) {
}
func (t *switchTable) reconfigure(e chan error) {
go func() {
defer close(e)
// This is where reconfiguration would go, if we had anything useful to do.
}()
defer close(e)
// This is where reconfiguration would go, if we had anything useful to do.
}
// Safely gets a copy of this node's locator.