[#770] ir: Reuse read notary config

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-08-06 14:14:27 +03:00 committed by Pavel Karpy
parent 846dd8c89e
commit 3400a071f9

View file

@ -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)