diff --git a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/mercury.go b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/mercury.go index 7475312d076..6af59bb9f8e 100644 --- a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/mercury.go +++ b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/mercury.go @@ -68,7 +68,7 @@ var CalculateRetryConfigFn = func(prk string, mercuryConfig MercuryConfigProvide type MercuryData struct { Index int - Bytes [][]byte // Mercury values is request is successful + Bytes [][]byte // Mercury values if request is successful ErrCode encoding.ErrCode // Error code if mercury gives an error State encoding.PipelineExecutionState // NoPipelineError if no error during execution, otherwise appropriate error Retryable bool // Applicable if State != NoPipelineError diff --git a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/v02/request.go b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/v02/request.go index d51219831e8..ec2935bf69a 100644 --- a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/v02/request.go +++ b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/v02/request.go @@ -77,8 +77,7 @@ func (c *client) DoRequest(ctx context.Context, streamsLookup *mercury.StreamsLo // in v0.2, when combining results for multiple feed requests // if any request resulted in pipeline execution error then use the last execution error as the state - // if no execution errors, then check if any feed returned an error code - // When combining multiple results, + // if no execution errors, then check if any feed returned an error code, if so use the last error code for i := 0; i < resultLen; i++ { m := <-ch if m.Error != nil {