mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-11 01:01:05 +08:00
fix path in MessageQueue func
This commit is contained in:
parent
959a688426
commit
19c476490a
1 changed files with 2 additions and 1 deletions
|
|
@ -121,12 +121,13 @@ func MessageQueue(ctx context.Context, network string) {
|
||||||
var cfg config.ClientConfig
|
var cfg config.ClientConfig
|
||||||
cfg.Network = network
|
cfg.Network = network
|
||||||
ncutils.Log("pulling latest config for " + cfg.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)
|
fileInfo, err := os.Stat(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ncutils.Log("could not stat config file: " + configPath)
|
ncutils.Log("could not stat config file: " + configPath)
|
||||||
}
|
}
|
||||||
// speed up UDP rest
|
// speed up UDP rest
|
||||||
|
fmt.Println(fileInfo)
|
||||||
if time.Now().After(fileInfo.ModTime().Add(time.Minute)) {
|
if time.Now().After(fileInfo.ModTime().Add(time.Minute)) {
|
||||||
sleepTime := 2
|
sleepTime := 2
|
||||||
for {
|
for {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue