Skip to content

Commit

Permalink
Merge pull request #8 from dipper-iot/fix_start
Browse files Browse the repository at this point in the history
fix option is null
  • Loading branch information
NortonBen committed Jul 22, 2023
2 parents 1273c26 + f9b7843 commit 26acea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (d *DipperEngine) Start() error {
for name, rule := range d.mapRule {
option, ok := d.config.Rules[name]
if ok && option.Enable {
err := rule.Initialize(d.ctx, map[string]interface{}{})
err := rule.Initialize(d.ctx, option.Options)
if err != nil {
return err
}
Expand Down

0 comments on commit 26acea9

Please sign in to comment.