From fb8153eb03dc94fffd8fe6ec2ce3191e08dcc311 Mon Sep 17 00:00:00 2001 From: ilija Date: Tue, 10 Sep 2024 17:41:21 +0200 Subject: [PATCH] lint --- median/plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/median/plugin.go b/median/plugin.go index 501e117..f958d5a 100644 --- a/median/plugin.go +++ b/median/plugin.go @@ -46,7 +46,8 @@ 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() + var cancelFn context.CancelFunc + ctx, cancelFn = p.stop.NewCtx() defer cancelFn() if err := errorLog.SaveError(ctx, msg); err != nil { lggr.Errorw("Unable to save error", "err", msg)