From 32e6af10dc23316245f9fcf60890cc9269fbf67f Mon Sep 17 00:00:00 2001 From: amirylm <83904651+amirylm@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:39:25 +0300 Subject: [PATCH] lint --- core/services/ocr2/plugins/liquiditymanager/plugin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/services/ocr2/plugins/liquiditymanager/plugin.go b/core/services/ocr2/plugins/liquiditymanager/plugin.go index f0d1f1bb42..23a6f21136 100644 --- a/core/services/ocr2/plugins/liquiditymanager/plugin.go +++ b/core/services/ocr2/plugins/liquiditymanager/plugin.go @@ -506,14 +506,14 @@ func (p *Plugin) loadPendingTransfers(ctx context.Context, lggr logger.Logger) ( return nil, fmt.Errorf("get edges: %w", err) } for _, edge := range edges { - lggr := lggr.With("sourceNetwork", edge.Source, "sourceChainID", edge.Source.ChainID(), "destNetwork", edge.Dest, "destChainID", edge.Dest.ChainID()) + logger := lggr.With("sourceNetwork", edge.Source, "sourceChainID", edge.Source.ChainID(), "destNetwork", edge.Dest, "destChainID", edge.Dest.ChainID()) bridge, err := p.bridgeFactory.NewBridge(edge.Source, edge.Dest) if err != nil { return nil, fmt.Errorf("init bridge: %w", err) } if bridge == nil { - lggr.Warnw("no bridge found for network pair") + logger.Warn("no bridge found for network pair") continue } @@ -531,7 +531,7 @@ func (p *Plugin) loadPendingTransfers(ctx context.Context, lggr logger.Logger) ( return nil, fmt.Errorf("get pending transfers: %w", err) } - lggr.Infow("loaded pending transfers for network", "pendingTransfers", netPendingTransfers) + logger.Infow("loaded pending transfers for network", "pendingTransfers", netPendingTransfers) pendingTransfers = append(pendingTransfers, netPendingTransfers...) }