Skip to content

Commit

Permalink
fix subtract of processing time
Browse files Browse the repository at this point in the history
  • Loading branch information
Aratz M. Lasa committed Mar 14, 2023
1 parent 87470ba commit 63f2c58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/relay/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 63f2c58

Please sign in to comment.