From a123242815c777b1360aad168b2d193d17edd707 Mon Sep 17 00:00:00 2001 From: Carlos Dias Date: Thu, 24 Oct 2024 10:50:04 +0100 Subject: [PATCH] fix watchdog kennel creation arguments --- watchdog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchdog.go b/watchdog.go index 15ff92c..6128d68 100644 --- a/watchdog.go +++ b/watchdog.go @@ -125,7 +125,7 @@ var _ WatchdogKennel = &watchdogKennel{} func newWatchdogKennel( args struct { dig.In - config Config + Config Config Factory *watchdogFactory Processes []WatchdogProcess `group:"flam.watchdog.process"` }, @@ -133,7 +133,7 @@ func newWatchdogKennel( k := &watchdogKennel{ factory: args.Factory, regs: map[string]watchdogKennelReg{}, - config: args.config.Bag(WatchdogConfigPath, &Bag{}), + config: args.Config.Bag(WatchdogConfigPath, &Bag{}), } for _, p := range args.Processes { if e := k.AddProcess(p); e != nil {