Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Removed unused fired field for waiters.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
  • Loading branch information
antoninbas committed Dec 10, 2024
1 parent e227552 commit e00eb21
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clock/testing/fake_clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,10 @@ func (f *FakeClock) setTimeLocked(t time.Time) {
if w.skipIfBlocked {
select {
case w.destChan <- t:
w.fired = true
default:
}
} else {
w.destChan <- t
w.fired = true
}

if w.afterFunc != nil {
Expand Down Expand Up @@ -336,7 +334,6 @@ func (f *fakeTimer) Reset(d time.Duration) bool {

active := false

f.waiter.fired = false
f.waiter.targetTime = f.fakeClock.time.Add(d)

for i := range f.fakeClock.waiters {
Expand Down

0 comments on commit e00eb21

Please sign in to comment.