From 6fcd67aebf09dcf7864ced143d6753381e01cae4 Mon Sep 17 00:00:00 2001 From: vyzaldysanchez Date: Tue, 30 Jul 2024 15:00:25 -0400 Subject: [PATCH] Fixes tests --- core/services/registrysyncer/syncer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/services/registrysyncer/syncer.go b/core/services/registrysyncer/syncer.go index 79d2f4dd9f2..9d3a2607f70 100644 --- a/core/services/registrysyncer/syncer.go +++ b/core/services/registrysyncer/syncer.go @@ -311,11 +311,11 @@ func (s *registrySyncer) sync(ctx context.Context, isInitialSync bool) error { if isInitialSync { s.lggr.Debug("syncing with local registry") lr, err = s.orm.latestState(ctx) - lr.lggr = s.lggr - lr.peerWrapper = s.peerWrapper if err != nil { s.lggr.Errorw("failed to sync with local registry, using remote registry instead", "error", err) } + lr.lggr = s.lggr + lr.peerWrapper = s.peerWrapper } if lr == nil {