fix race condition in config updating

This commit is contained in:
ginuerzh 2023-01-20 10:28:32 +08:00
parent cf49a3ae46
commit c765789076
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ func main() {
}()
}
config.SetGlobal(cfg)
config.Set(cfg)
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, os.Interrupt, syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP)

View File

@ -1,5 +1,5 @@
package main
const (
version = "3.0.0-rc.3"
version = "3.0.0-rc.4"
)