Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amirylm committed Jun 20, 2024
1 parent 9cacb8e commit 32e6af1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/services/ocr2/plugins/liquiditymanager/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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...)
}

Expand Down

0 comments on commit 32e6af1

Please sign in to comment.