fix: 修复配置key错误

This commit is contained in:
2023-03-24 17:47:36 +08:00
parent 6cd3b8609f
commit 223bf69e44
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func Watch() cago.Component {
func (w *watch) Start(ctx context.Context, cfg *configs.Config) error {
config := &Config{}
if err := cfg.Scan("w", config); err != nil {
if err := cfg.Scan("watch", config); err != nil {
return err
}
// 获取记录列表