From a3b184a13045d02e56ccaeac28acb6ba229e262c Mon Sep 17 00:00:00 2001 From: acaldas Date: Wed, 17 Jul 2024 13:03:22 +0100 Subject: [PATCH] feat: change listener polling interval to 10s --- src/hooks/useClientErrorHandler.ts | 2 +- src/hooks/useLoadDefaultDrives.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useClientErrorHandler.ts b/src/hooks/useClientErrorHandler.ts index 2f49ad01..0f9b0bbe 100644 --- a/src/hooks/useClientErrorHandler.ts +++ b/src/hooks/useClientErrorHandler.ts @@ -53,7 +53,7 @@ export const useClientErrorHandler = (): ClientErrorHandler => { triggerData.url, { pullInterval: - Number(triggerData.interval) || 3000, + Number(triggerData.interval) || 10000, }, ); diff --git a/src/hooks/useLoadDefaultDrives.ts b/src/hooks/useLoadDefaultDrives.ts index 8d82418e..116985f5 100644 --- a/src/hooks/useLoadDefaultDrives.ts +++ b/src/hooks/useLoadDefaultDrives.ts @@ -111,7 +111,7 @@ export const useLoadDefaultDrives = () => { }, ], triggers: [], - pullInterval: 3000, + pullInterval: 10000, }) .then(() => setConfig(conf => ({