From 89f8b1e48430dfe459eb2be7085bb1db9d5e0821 Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Mon, 9 Dec 2024 18:33:53 -0800 Subject: [PATCH] Address review comments Removed unused fired field for waiters. Signed-off-by: Antonin Bas --- clock/testing/fake_clock.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/clock/testing/fake_clock.go b/clock/testing/fake_clock.go index 343b0509..462c40c2 100644 --- a/clock/testing/fake_clock.go +++ b/clock/testing/fake_clock.go @@ -48,7 +48,6 @@ type fakeClockWaiter struct { stepInterval time.Duration skipIfBlocked bool destChan chan time.Time - fired bool afterFunc func() } @@ -198,12 +197,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 { @@ -336,7 +333,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 {