Skip to content

Commit

Permalink
chore: replaced constants.MIRROR_NODE_REQUEST_RETRY_COUNT_DEFAULT wit…
Browse files Browse the repository at this point in the history
…h config

Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Feb 4, 2025
1 parent 0b05cb0 commit f99771a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions packages/relay/src/lib/clients/mirrorNodeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ export class MirrorNodeClient {
private static readonly GET_CONTRACT_RESULTS_DETAILS_BY_CONTRACT_ID_ENDPOINT = `contracts/${MirrorNodeClient.CONTRACT_ID_PLACEHOLDER}/results/${MirrorNodeClient.TIMESTAMP_PLACEHOLDER}`;
private static readonly GET_CONTRACT_RESULTS_DETAILS_BY_ADDRESS_AND_TIMESTAMP_ENDPOINT = `contracts/${MirrorNodeClient.ADDRESS_PLACEHOLDER}/results/${MirrorNodeClient.TIMESTAMP_PLACEHOLDER}`;
private readonly MIRROR_NODE_RETRY_DELAY = ConfigService.get('MIRROR_NODE_RETRY_DELAY');
private readonly MIRROR_NODE_REQUEST_RETRY_COUNT = parseNumericEnvVar(
'MIRROR_NODE_REQUEST_RETRY_COUNT',
'MIRROR_NODE_REQUEST_RETRY_COUNT_DEFAULT',
);
private readonly MIRROR_NODE_REQUEST_RETRY_COUNT = ConfigService.get('MIRROR_NODE_REQUEST_RETRY_COUNT');

static acceptedErrorStatusesResponsePerRequestPathMap: Map<string, Array<number>> = new Map([
[MirrorNodeClient.GET_ACCOUNTS_BY_ID_ENDPOINT, [404]],
Expand Down
1 change: 0 additions & 1 deletion packages/relay/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export default {
RELAY_HOST: ConfigService.get('SERVER_HOST') || 'localhost',

FUNCTION_SELECTOR_CHAR_LENGTH: 10,
MIRROR_NODE_REQUEST_RETRY_COUNT_DEFAULT: 10,
BASE_HEX_REGEX: '^0[xX][a-fA-F0-9]',

TRANSACTION_RESULT_STATUS: {
Expand Down

0 comments on commit f99771a

Please sign in to comment.