fix: change locker to avoid pointer to interface

This commit is contained in:
Jon Lundy
2023-09-15 13:24:51 -06:00
parent 5ad7fce0ac
commit a4192718b5
10 changed files with 87 additions and 31 deletions

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
}