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

@ -27,7 +27,7 @@ test-job:
lint-job: lint-job:
stage: test stage: test
image: golangci/golangci-lint:v1.46 image: golangci/golangci-lint:v1.52
cache: cache:
key: lint-cache key: lint-cache
paths: paths:

View File

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