Skip to content

Commit

Permalink
decrease timeout and threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Dec 1, 2024
1 parent 6380b70 commit 6706536
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/api/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import SERVERS from "@/servers.json";
import { Community, Entry, Subscription } from "@/entities";

export const bridgeServer = new Client(SERVERS, {
timeout: 3000,
failoverThreshold: 3,
timeout: 1000,
failoverThreshold: 1,
consoleOnFailover: true
});
export const dataLimit = typeof window !== "undefined" && window.screen.width < 540 ? 5 : 20 || 20;
Expand Down
4 changes: 2 additions & 2 deletions src/api/hive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import { isCommunity, parseAsset, vestsToRshares } from "@/utils";
import { OrdersDataItem } from "@/entities/hive/orders-data-item";

export const client = new Client(SERVERS, {
timeout: 3000,
failoverThreshold: 3,
timeout: 1000,
failoverThreshold: 1,
consoleOnFailover: true
});

Expand Down

0 comments on commit 6706536

Please sign in to comment.