[#702] Init app settings

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-09-12 16:55:59 +03:00 committed by Alex Vanin
parent 2a41929be3
commit 1fa28dfacd

View file

@ -230,6 +230,7 @@ func newApp(ctx context.Context, log *Logger, v *viper.Viper) *App {
wrkDone: make(chan struct{}, 1),
maxClients: api.NewMaxClientsMiddleware(maxClientsCount, maxClientsDeadline),
settings: &appSettings{LogLevel: log.lvl},
}
app.initMetrics()