Skip to content

Commit

Permalink
explorer: increase default refect interval
Browse files Browse the repository at this point in the history
Resolves #3319
  • Loading branch information
kieranhall committed Jan 6, 2025
1 parent 794c7fd commit 2fd9fb4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion explorer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions explorer/src/lib/stores/__tests__/appStore.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion explorer/src/lib/stores/appStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion explorer/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2fd9fb4

Please sign in to comment.