Skip to content

Commit

Permalink
fix: enabled WS_BATCH_REQUESTS_ENABLED by default
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
  • Loading branch information
quiet-node committed May 11, 2024
1 parent 549e863 commit 9410e7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Unless you need to set a non-default value, it is recommended to only populate o

| Name | Default | Description |
| ---------------------------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `BATCH_REQUESTS_ENABLED` | "false" | Flag to disable or enable batch requests. |
| `BATCH_REQUESTS_ENABLED` | "true" | Flag to disable or enable batch requests. |
| `BATCH_REQUESTS_MAX_SIZE` | "100" | Maximum number of requests allowed in a batch. |
| `WS_BATCH_REQUESTS_ENABLED` | "false" | Flag to enable batch requests on the websocket server. |
| `WS_BATCH_REQUESTS_ENABLED` | "true" | Flag to disable or enable batch requests on the websocket server. |
| `WS_BATCH_REQUESTS_MAX_SIZE` | "20" | Maximum number of requests allowed in a batch on websocket server. |
| `CHAIN_ID` | "" | The network chain id. Local and previewnet envs should use `0x12a` (298). Previewnet, Testnet and Mainnet should use `0x129` (297), `0x128` (296) and `0x127` (295) respectively. |
| `HBAR_RATE_LIMIT_DURATION` | "80000" | hbar budget limit duration. This creates a timestamp, which resets all limits, when it's reached. Default is to 80000 (80 seconds). |
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-server/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const getMultipleAddressesEnabled = (): boolean => {
* @returns {boolean} A boolean indicating whether WebSocket batch requests are enabled.
*/
export const getWsBatchRequestsEnabled = (): boolean => {
return process.env.WS_BATCH_REQUESTS_ENABLED === 'true';
return process.env.WS_BATCH_REQUESTS_ENABLED === 'true' || true;
};

/**
Expand Down

0 comments on commit 9410e7e

Please sign in to comment.