Skip to content

Commit

Permalink
1 line less
Browse files Browse the repository at this point in the history
  • Loading branch information
yossigi committed Aug 28, 2023
1 parent f6979bc commit 6a6eec0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions agreement/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ func (p *player) calculateFilterTimeout(ver protocol.ConsensusVersion, tracer *t
tracer.log.Debugf("round %d, period %d: dynamicTimeout = %d, clamped timeout = %d", p.Round, p.Period, dynamicTimeout, clampedTimeout)
// store dynamicFilterTimeout on the player for debugging & reporting
p.dynamicFilterTimeout = dynamicTimeout
dynamicTimeout = clampedTimeout

if !proto.DynamicFilterTimeout {
// If the dynamic filter timeout is disabled, return the default filter
Expand All @@ -335,7 +334,7 @@ func (p *player) calculateFilterTimeout(ver protocol.ConsensusVersion, tracer *t
return defaultTimeout
}

return dynamicTimeout
return clampedTimeout
}

func (p *player) handleThresholdEvent(r routerHandle, e thresholdEvent) []action {
Expand Down

0 comments on commit 6a6eec0

Please sign in to comment.