Skip to content

Commit

Permalink
another area to clean up if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvinnix committed Feb 21, 2024
1 parent d861907 commit e07d007
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,7 @@ func (vm *vm) run() {
panic("failed to make reservation")
}

delay := r.DelayFrom(now)
if delay > 0 {
if delay := r.DelayFrom(now); delay > 0 {
vm.r.limiterWaitCount++
vm.r.limiterWaitTotalTime += delay

Expand Down

0 comments on commit e07d007

Please sign in to comment.