mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 16:33:49 +08:00
fix startup
This commit is contained in:
@@ -66,10 +66,11 @@ func Daemon() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// == subscribe to all nodes for each on machine ==
|
// == subscribe to all nodes for each on machine ==
|
||||||
for server, config := range serverSet {
|
for server := range serverSet {
|
||||||
logger.Log(1, "started daemon for server ", server)
|
logger.Log(1, "started daemon for server ", server)
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
networkcontext.Store(server, cancel)
|
networkcontext.Store(server, cancel)
|
||||||
|
config := serverSet[server]
|
||||||
go messageQueue(ctx, &config)
|
go messageQueue(ctx, &config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user