fix startup

This commit is contained in:
Matthew R Kasun
2022-05-23 16:10:02 -04:00
parent c3989fc6f1
commit 2a35ef39a6

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)
}