From 529e33de66f5ef71689772bc8b8afe9d56b68b96 Mon Sep 17 00:00:00 2001 From: Yuzuki616 Date: Mon, 28 Apr 2025 10:44:42 +0900 Subject: [PATCH] fix: error --- conf/watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/watcher.go b/conf/watcher.go index 8a9e66c..315e61d 100644 --- a/conf/watcher.go +++ b/conf/watcher.go @@ -71,12 +71,12 @@ func (c *Conf) Watch() error { w := watcher.NewLocalWatcher(co.DataPath, []string{"*"}) w.SetErrorHandler(watcher.ErrorHandler(c.errorHandler)) w.SetEventHandler(func(_ string) error { - c.watcherHandle(CoreDataPathChangedEvent, c.Core[i].Name) + c.watcherHandle(CoreDataPathChangedEvent, c.Core[i].Type) return nil }) err := w.Watch() if err != nil { - return fmt.Errorf("watch core %s err:%w", co.Name, err) + return fmt.Errorf("watch core %s err:%w", co.Type, err) } watchers[i] = w }