Skip to content

Commit

Permalink
fix: 减少重试次数
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Feb 21, 2024
1 parent 3561f7c commit 4cbca97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/BingDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class BingDrawClient {
fetchOptions.agent = proxy(Config.proxy)
}
let success = false
let retry = 5
let retry = 1
let response
while (!success && retry >= 0) {
response = await fetch(url, Object.assign(fetchOptions, { body, redirect: 'manual', method: 'POST', credentials: 'include' }))
Expand Down

0 comments on commit 4cbca97

Please sign in to comment.