forked from TrueCloudLab/frostfs-node
[#770] ir: Reuse read notary config
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
846dd8c89e
commit
3400a071f9
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
|
|||
|
||||
var irf irFetcher
|
||||
|
||||
if server.morphClient.ProbeNotary() {
|
||||
if !server.mainNotaryConfig.disabled {
|
||||
irf = NewIRFetcherWithNotary(server.morphClient)
|
||||
} else {
|
||||
irf = NewIRFetcherWithoutNotary(server.netmapClient)
|
||||
|
|
Loading…
Reference in a new issue