[#199] Use default value if config param is unset after SIGHUP

Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
Marina Biryukova 2025-01-27 13:17:02 +03:00 committed by Alexey Vanin
parent a6fdaf9456
commit 8de06e23a0
5 changed files with 269 additions and 137 deletions

View file

@ -8,9 +8,9 @@ import (
func main() {
globalContext, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
v := settings()
cfg := settings()
application := newApp(globalContext, v)
application := newApp(globalContext, cfg)
go application.Serve()
application.Wait()
}