fix: change locker to avoid pointer to interface

This commit is contained in:
Jon Lundy committed 2023-09-15 13:24:51 -06:00
1 parent 5ad7fce0ac
commit a4192718b5
10 files changed
+87 -31

No files matched your search

+4 -1
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023 Jon Lundy <jon@xuu.cc>
// SPDX-License-Identifier: BSD-3-Clause
package cron
import (
@@ -30,7 +33,7 @@ type state struct {
}
type cron struct {
jobs []job
state *locker.Locked[state]
state *locker.Locked[*state]
granularity time.Duration
}