This commit is contained in:
Christian Schwarz
2024-05-09 13:25:31 +00:00
parent c8afaf83ab
commit beecb4b93d
6 changed files with 9 additions and 10 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ type periodicArgs struct {
interval time.Duration
fsf zfs.DatasetFilter
planArgs planArgs
snapshotsTaken *trigger.Trigger
snapshotsTaken *trigger.Manual
dryRun bool
}
@@ -104,7 +104,7 @@ func (s State) sf() state {
type updater func(u func(*Periodic)) State
type state func(a periodicArgs, u updater) state
func (s *Periodic) Run(ctx context.Context, snapshotsTaken trigger.Trigger {
func (s *Periodic) Run(ctx context.Context, snapshotsTaken *trigger.Manual) {
defer trace.WithSpanFromStackUpdateCtx(&ctx)()
getLogger(ctx).Debug("start")
defer getLogger(ctx).Debug("stop")