Skip to content

Commit

Permalink
重试5次
Browse files Browse the repository at this point in the history
  • Loading branch information
axiaoxin committed Jul 14, 2021
1 parent d38079c commit 5f3fec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/searcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ func (s Searcher) SearchFunds(ctx context.Context, fundCodes []string) (map[stri
return err
},
retry.OnRetry(func(n uint, err error) {
logging.Errorf(ctx, "retry#%d: code:%v %v\n", n, code, err)
logging.Errorf(ctx, "retry#%d: code:%v %v", n, code, err)
}),
retry.Attempts(3),
retry.Attempts(5),
retry.Delay(500*time.Millisecond),
)
if err != nil {
Expand Down

0 comments on commit 5f3fec1

Please sign in to comment.