[#509] Init resolvers before first resolving
All checks were successful
/ DCO (pull_request) Successful in 1m11s
/ Builds (pull_request) Successful in 1m27s
/ Vulncheck (pull_request) Successful in 1m44s
/ Lint (pull_request) Successful in 2m26s
/ Tests (pull_request) Successful in 1m29s

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2024-10-18 14:48:53 +03:00
parent 523ffd9813
commit 41c0a328a4

View file

@ -151,6 +151,7 @@ func newApp(ctx context.Context, log *Logger, v *viper.Viper) *App {
}
func (a *App) init(ctx context.Context) {
a.initResolver()
a.initAuthCenter(ctx)
a.setRuntimeParameters()
a.initFrostfsID(ctx)
@ -181,8 +182,6 @@ func (a *App) initAuthCenter(ctx context.Context) {
}
func (a *App) initLayer(ctx context.Context) {
a.initResolver()
// prepare random key for anonymous requests
randomKey, err := keys.NewPrivateKey()
if err != nil {