Merge pull request #1120 from gravitl/bugfix_v0.14.1_daemon_startup

Bugfix v0.14.1 daemon startup
This commit is contained in:
dcarns 2022-05-23 16:36:48 -04:00 committed by GitHub
commit 69d5cb2d15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,10 +66,11 @@ func Daemon() error {
}
// == 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)
ctx, cancel := context.WithCancel(context.Background())
networkcontext.Store(server, cancel)
config := serverSet[server]
go messageQueue(ctx, &config)
}