Skip to content

Commit

Permalink
Merge branch 'main' into zhuyunfei/feature_monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
NICEXAI committed Aug 5, 2021
2 parents 477de7d + 494f943 commit 77eb649
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ func New(options Options) (client *Client, err error) {
monitorLogExpireTime: options.MonitorLogExpireTime,
}

if err = client.initAccessToken(); err != nil {
return nil, err
if options.Secret != "" {
if err = client.initAccessToken(); err != nil {
return nil, err
}
}

return client, nil
Expand Down

0 comments on commit 77eb649

Please sign in to comment.