Change plugin/discord error tolerance from 5/12.5s to 5/10s

This commit is contained in:
Dragory 2020-12-18 05:08:51 +02:00
parent 5a1926439b
commit 3538d6c66a
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -48,8 +48,8 @@ const RECENT_PLUGIN_ERROR_EXIT_THRESHOLD = 5;
let recentDiscordErrors = 0;
const RECENT_DISCORD_ERROR_EXIT_THRESHOLD = 5;
setInterval(() => (recentPluginErrors = Math.max(0, recentPluginErrors - 1)), 2500);
setInterval(() => (recentDiscordErrors = Math.max(0, recentDiscordErrors - 1)), 2500);
setInterval(() => (recentPluginErrors = Math.max(0, recentPluginErrors - 1)), 2000);
setInterval(() => (recentDiscordErrors = Math.max(0, recentDiscordErrors - 1)), 2000);
if (process.env.NODE_ENV === "production") {
const errorHandler = err => {