From cc9a7270283dbd638cb973d5481d277a354b31c7 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 31 Oct 2024 15:58:35 -0400 Subject: [PATCH] fix(timer): restore 1s default interval --- timer/timer.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/timer/timer.go b/timer/timer.go index 2a9870c1..378da641 100644 --- a/timer/timer.go +++ b/timer/timer.go @@ -99,9 +99,10 @@ type Model struct { // New creates a new timer with the given timeout and default 1s interval. func New(timeout time.Duration, opts ...Option) Model { m := Model{ - Timeout: timeout, - running: true, - id: nextID(), + Timeout: timeout, + Interval: time.Second, + running: true, + id: nextID(), } for _, opt := range opts { opt(&m)