[#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:
parent
a6fdaf9456
commit
8de06e23a0
5 changed files with 269 additions and 137 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue