From 41c0a328a44df4491e1b5abf0f261e3b3845fa60 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 b27da86..870c32d 100644 --- a/cmd/s3-gw/app.go +++ b/cmd/s3-gw/app.go @@ -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 {