fix: 修复配置key错误
This commit is contained in:
@ -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:
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
// 获取记录列表
|
// 获取记录列表
|
||||||
|
Reference in New Issue
Block a user