From 63f2c58c0632be46a5b8c26eaea1e7aa55cb87c7 Mon Sep 17 00:00:00 2001 From: "Aratz M. Lasa" Date: Tue, 14 Mar 2023 16:16:21 +0000 Subject: [PATCH] fix subtract of processing time --- pkg/relay/submit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/relay/submit.go b/pkg/relay/submit.go index 76b1cdfd..9929503f 100644 --- a/pkg/relay/submit.go +++ b/pkg/relay/submit.go @@ -82,12 +82,12 @@ func (rs *Relay) SubmitBlock(ctx context.Context, m *structs.MetricGroup, sbr st } processingTime := time.Since(tStart) - // subtract the retry waiting times + // subtract the retry waiting times if wRetried { - processingTime = -StateRecheckDelay + processingTime -= StateRecheckDelay } if bRetried { - processingTime = -StateRecheckDelay + processingTime -= StateRecheckDelay } logger.With(log.F{ "processingTimeMs": processingTime.Milliseconds(),