Skip to content

feat: add subscription retries#162

Draft
noisyscanner wants to merge 4 commits intomainfrom
brad/subscription-retries
Draft

feat: add subscription retries#162
noisyscanner wants to merge 4 commits intomainfrom
brad/subscription-retries

Conversation

@noisyscanner
Copy link
Member

No description provided.

Comment on lines +2 to +5
const noConnectionErrorCodes = new Set([
"ECONNREFUSED",
"ENETUNREACH",
]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
const noConnectionErrorCodes = new Set([
"ECONNREFUSED",
"ENETUNREACH",
]);
const noConnectionErrorCodes = new Set(["ECONNREFUSED", "ENETUNREACH"]);

Comment on lines +9 to +12
const ambiguousConnectionErrorCodes = new Set([
"ETIMEDOUT",
"ECONNRESET",
]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
const ambiguousConnectionErrorCodes = new Set([
"ETIMEDOUT",
"ECONNRESET",
]);
const ambiguousConnectionErrorCodes = new Set(["ETIMEDOUT", "ECONNRESET"]);


export const isConnectionError = (error) => {
const code = getCode(error);
return noConnectionErrorCodes.has(code) || ambiguousConnectionErrorCodes.has(code);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
return noConnectionErrorCodes.has(code) || ambiguousConnectionErrorCodes.has(code);
return (
noConnectionErrorCodes.has(code) || ambiguousConnectionErrorCodes.has(code)
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant