mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
fix: webhook retry interval shifted by 1 (#558)
* fix: webhook retry interval shifted by 1 * chore: update docs
This commit is contained in:
parent
f25fe50140
commit
54eb24137c
2
api-docs
2
api-docs
@ -1 +1 @@
|
||||
Subproject commit 8b77196572399132ae3d9c10d27f5269ad819d39
|
||||
Subproject commit aaba2fcc953a4e4d3cfb205c0aa90d3eb271d727
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user