forked from TrueCloudLab/frostfs-s3-gw
[#509] Init resolvers before first resolving
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
57b7e83380
commit
3c7cb82553
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue