fix path in MessageQueue func

This commit is contained in:
Matthew R Kasun 2022-02-03 10:48:40 -05:00
parent 959a688426
commit 19c476490a

View file

@ -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 {