Skip to content

Commit

Permalink
Merge branch 'master' into MERC-6548-validation-for-evm-premium-legac…
Browse files Browse the repository at this point in the history
…y-encoder-to-check-for-exactly-3-streams
  • Loading branch information
samsondav committed Nov 11, 2024
2 parents 470253b + ffd49da commit 77e6c87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions llo/plugin_observation.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ func (p *Plugin) observation(ctx context.Context, outctx ocr3types.OutcomeContex
// limit the call to Observe to 25ms less than that, to allow some
// headroom for serialization and other operations.
maxDurationObserve := p.MaxDurationObservation - 25*time.Millisecond
if maxDurationObserve < 0 {
maxDurationObserve = 0
if maxDurationObserve < 50*time.Millisecond {
// Don't ever allow LESS than 50ms for Observe even if it would
// log a warning
maxDurationObserve = 50 * time.Millisecond
}
observationCtx, cancel := context.WithTimeout(ctx, maxDurationObserve)
defer cancel()
Expand Down

0 comments on commit 77e6c87

Please sign in to comment.