mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Reconfigure functions now ran by actors
This commit is contained in:
parent
607c906820
commit
e553f3e013
4 changed files with 36 additions and 30 deletions
|
@ -77,13 +77,11 @@ func (r *router) reconfigure(e chan error) {
|
|||
defer close(e)
|
||||
var errs []error
|
||||
// Reconfigure the router
|
||||
phony.Block(r, func() {
|
||||
current := r.core.config.GetCurrent()
|
||||
err := r.nodeinfo.setNodeInfo(current.NodeInfo, current.NodeInfoPrivacy)
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
})
|
||||
current := r.core.config.GetCurrent()
|
||||
err := r.nodeinfo.setNodeInfo(current.NodeInfo, current.NodeInfoPrivacy)
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
for _, err := range errs {
|
||||
e <- err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue