From 19c476490a4cabaeea23ef7cf34db8e0126d859c Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Thu, 3 Feb 2022 10:48:40 -0500 Subject: [PATCH] fix path in MessageQueue func --- netclient/functions/daemon.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netclient/functions/daemon.go b/netclient/functions/daemon.go index a6ed9769..5602d6a1 100644 --- a/netclient/functions/daemon.go +++ b/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 {