wip search requests to other nodes
This commit is contained in:
parent
c594c93559
commit
1baa40b620
7 changed files with 411 additions and 9 deletions
|
@ -131,13 +131,12 @@ func startFileWatcher() {
|
|||
configLock.Lock()
|
||||
config = loadConfig()
|
||||
configLock.Unlock()
|
||||
// Perform your logic here to handle the changes in the config file
|
||||
}
|
||||
case err, ok := <-watcher.Errors:
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
log.Println("Error:", err)
|
||||
log.Println("Error watching configuration file:", err)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue