Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Sep 10, 2024
1 parent 92c9c51 commit e5c8922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions median/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func (p *Plugin) NewMedianFactory(ctx context.Context, provider types.MedianProv
GasPriceSubunitsDataSource: gasPriceSubunits,
IncludeGasPriceSubunitsInObservation: includeGasPriceSubunitsInObservation,
Logger: logger.NewOCRWrapper(lggr, true, func(msg string) {
ctx, cancelFn := p.stop.NewCtx()
newCtx, cancelFn := p.stop.NewCtx()
defer cancelFn()
if err := errorLog.SaveError(ctx, msg); err != nil {
if err := errorLog.SaveError(newCtx, msg); err != nil {
lggr.Errorw("Unable to save error", "err", msg)
}
}),
Expand Down

0 comments on commit e5c8922

Please sign in to comment.