Browse Source

fix startup

Matthew R Kasun 3 năm trước cách đây
mục cha
commit
2a35ef39a6
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      netclient/functions/daemon.go

+ 2 - 1
netclient/functions/daemon.go

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