mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
fix(timer): restore 1s default interval
This commit is contained in:
+4
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user