Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zan8in committed Oct 15, 2023
1 parent a334b64 commit bf4723f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions v2/pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ func NewRunner(options *config.Options) (*Runner, error) {

runner.engine = NewEngine(options)

runner.Ding, err = dingtalk.New(options.Config.Webhook.Dingtalk.Tokens,
options.Config.Webhook.Dingtalk.AtMobiles,
options.Config.Webhook.Dingtalk.Range,
options.Config.Webhook.Dingtalk.AtAll)
if err != nil {
return nil, err
if options.Dingtalk {
runner.Ding, err = dingtalk.New(options.Config.Webhook.Dingtalk.Tokens,
options.Config.Webhook.Dingtalk.AtMobiles,
options.Config.Webhook.Dingtalk.Range,
options.Config.Webhook.Dingtalk.AtAll)
if err != nil {
return nil, err
}
}

retryhttpclient.Init(&retryhttpclient.Options{
Expand Down

0 comments on commit bf4723f

Please sign in to comment.