From 3c7cb82553e8c663227a2ed8a5a7dbd2f317ce7a Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Fri, 18 Oct 2024 14:48:53 +0300 Subject: [PATCH] [#509] Init resolvers before first resolving Signed-off-by: Denis Kirillov --- cmd/s3-gw/app.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/s3-gw/app.go b/cmd/s3-gw/app.go index ee8ea33..8a1746a 100644 --- a/cmd/s3-gw/app.go +++ b/cmd/s3-gw/app.go @@ -152,6 +152,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) @@ -182,8 +183,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 {