4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-03 09:37:47 +00:00

Remove mutexes from CKR and use router goroutine/doAdmin for update config

This commit is contained in:
Neil Alexander
2019-01-14 18:34:15 +00:00
parent 51026d762e
commit 9e186bdd67
3 changed files with 17 additions and 56 deletions

View File

@ -127,14 +127,6 @@ func (r *router) mainLoop() {
case f := <-r.admin:
f()
case e := <-r.reconfigure:
// Send reconfigure notification to cryptokey
response := make(chan error)
r.cryptokey.reconfigure <- response
if err := <-response; err != nil {
e <- err
}
// Anything else to do?
e <- nil
}
}