Skip to content

Commit

Permalink
Add minor comments to Ramping VU executor
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Nov 18, 2021
1 parent b68fd30 commit 9836174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/executor/ramping_vus.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ func (rs rampingVUsRunState) handleRemainingVUs(
}

func (rs rampingVUsRunState) maxAllowedVUsHandlerStrategy() func(lib.ExecutionStep) {
var cur uint64
var cur uint64 // current number of planned graceful VUs
return func(graceful lib.ExecutionStep) {
pv := graceful.PlannedVUs
for ; pv < cur; cur-- {
Expand All @@ -691,7 +691,7 @@ func (rs rampingVUsRunState) maxAllowedVUsHandlerStrategy() func(lib.ExecutionSt
}

func (rs rampingVUsRunState) scheduledVUsHandlerStrategy() func(lib.ExecutionStep) {
var cur uint64
var cur uint64 // current number of planned raw VUs
return func(raw lib.ExecutionStep) {
pv := raw.PlannedVUs
for ; cur < pv; cur++ {
Expand Down

0 comments on commit 9836174

Please sign in to comment.