From e00eb214a649a00ad474b2e7d0ac058f84c4bc4e 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/clock/testing/fake_clock.go b/clock/testing/fake_clock.go index 343b0509..b60d007b 100644 --- a/clock/testing/fake_clock.go +++ b/clock/testing/fake_clock.go @@ -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 { @@ -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 {