fix: webhook retry interval shifted by 1 (#558)

* fix: webhook retry interval shifted by 1

* chore: update docs
This commit is contained in:
SKINMAKER 2023-04-26 20:42:51 +09:00 committed by GitHub
parent f25fe50140
commit 54eb24137c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 8b77196572399132ae3d9c10d27f5269ad819d39
Subproject commit aaba2fcc953a4e4d3cfb205c0aa90d3eb271d727

View File

@ -31,7 +31,7 @@ async function sendRequest({
const isBot = payload.type === 'bot'
if(retryCount) {
await setTimeout(Math.pow(2, retryCount + 2) * 1000)
await setTimeout(Math.pow(2, retryCount + 1) * 1000)
}
const result = await relayedFetch({
dest: webhook.url,