Browse Source

fix path in MessageQueue func

Matthew R Kasun 3 years ago
parent
commit
19c476490a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      netclient/functions/daemon.go

+ 2 - 1
netclient/functions/daemon.go

@@ -121,12 +121,13 @@ func MessageQueue(ctx context.Context, network string) {
 	var cfg config.ClientConfig
 	cfg.Network = network
 	ncutils.Log("pulling latest config for " + cfg.Network)
-	var configPath = fmt.Sprintf("%sconfig/netconfig-%s", ncutils.GetNetclientPathSpecific(), network)
+	var configPath = fmt.Sprintf("%snetconfig-%s", ncutils.GetNetclientPathSpecific(), network)
 	fileInfo, err := os.Stat(configPath)
 	if err != nil {
 		ncutils.Log("could not stat config file: " + configPath)
 	}
 	// speed up UDP rest
+	fmt.Println(fileInfo)
 	if time.Now().After(fileInfo.ModTime().Add(time.Minute)) {
 		sleepTime := 2
 		for {