Skip to content

Commit

Permalink
add retry test
Browse files Browse the repository at this point in the history
  • Loading branch information
wladpaiva committed Oct 20, 2023
1 parent 9b70b0b commit 9c16980
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ function cli({

if (error instanceof RateLimitError || error instanceof ServerError) {
console.error(chalk.red(` retrying in 60 seconds...`))
setTimeout(aibitat.retry, 60000)
setTimeout(() => {
aibitat.retry()
}, 60000)
return
}
})
Expand Down

0 comments on commit 9c16980

Please sign in to comment.