From 2fd9fb43e0d905bc696b5a1984ea1895b73a2cad Mon Sep 17 00:00:00 2001 From: Kieran Hall Date: Mon, 6 Jan 2025 11:24:50 +0100 Subject: [PATCH] explorer: increase default refect interval Resolves #3319 --- explorer/README.md | 2 +- explorer/src/lib/stores/__tests__/appStore.spec.js | 4 ++-- explorer/src/lib/stores/appStore.js | 2 +- explorer/vite.config.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/explorer/README.md b/explorer/README.md index cfab2bd40..4944bd232 100644 --- a/explorer/README.md +++ b/explorer/README.md @@ -31,7 +31,7 @@ VITE_CHAIN_INFO_ENTRIES=15 VITE_MARKET_DATA_REFETCH_INTERVAL=120000 VITE_NODE_URL="" # Optional, set to (e.g. 'https://nodes.dusk.network' to) override default VITE_PROVISIONERS_REFETCH_INTERVAL=30000 -VITE_REFETCH_INTERVAL=1000 +VITE_REFETCH_INTERVAL=10000 VITE_RUSK_PATH="" # Optional, set to '/rusk' for dev mode VITE_STATS_REFETCH_INTERVAL=1000 VITE_TRANSACTIONS_LIST_ENTRIES=100 diff --git a/explorer/src/lib/stores/__tests__/appStore.spec.js b/explorer/src/lib/stores/__tests__/appStore.spec.js index 2a598b8ca..5d8531184 100644 --- a/explorer/src/lib/stores/__tests__/appStore.spec.js +++ b/explorer/src/lib/stores/__tests__/appStore.spec.js @@ -93,10 +93,10 @@ describe("appStore", () => { statsFetchInterval, } = get(appStore); - expect(fetchInterval).toBe(1000); + expect(fetchInterval).toBe(10000); expect(marketDataFetchInterval).toBe(120000); expect(provisionersFetchInterval).toBe(30000); - expect(statsFetchInterval).toBe(1000); + expect(statsFetchInterval).toBe(10000); vi.unstubAllEnvs(); }); diff --git a/explorer/src/lib/stores/appStore.js b/explorer/src/lib/stores/appStore.js index 36f24ad0c..8430f2e3d 100644 --- a/explorer/src/lib/stores/appStore.js +++ b/explorer/src/lib/stores/appStore.js @@ -9,7 +9,7 @@ const browserDefaults = browser : { darkMode: false, }; -const DEFAULT_FETCH_INTERVAL = 1000; +const DEFAULT_FETCH_INTERVAL = 10000; const DEFAULT_MARKET_FETCH_INTERVAL = 120000; const DEFAULT_PROVISIONERS_FETCH_INTERVAL = 30000; const DEFAULT_STATS_FETCH_INTERVAL = DEFAULT_FETCH_INTERVAL; diff --git a/explorer/vite.config.js b/explorer/vite.config.js index 122fe9d0f..87bbe102d 100644 --- a/explorer/vite.config.js +++ b/explorer/vite.config.js @@ -62,7 +62,7 @@ export default defineConfig(({ mode }) => { VITE_MARKET_DATA_REFETCH_INTERVAL: "120000", VITE_NODE_URL: "https://nodes.dusk.network", VITE_PROVISIONERS_REFETCH_INTERVAL: "30000", - VITE_REFETCH_INTERVAL: "1000", + VITE_REFETCH_INTERVAL: "10000", VITE_RUSK_PATH: "", VITE_STATS_REFETCH_INTERVAL: "1000", VITE_TRANSACTIONS_LIST_ENTRIES: "100",