Skip to content

add retry to notablock request #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

kevodwyer
Copy link
Member

No description provided.

@kevodwyer kevodwyer requested a review from ianopolous November 11, 2022 09:31
if (domainOpt.isPresent()) {
let domain = domainOpt.get();
that.sendNotABlockRequest(domain, (errCb1) => {
that.sendNotABlockRequest(domain, (errCb2) => {
Copy link
Member

Choose a reason for hiding this comment

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

We should only retry if a http 503 was returned.

Copy link
Member Author

Choose a reason for hiding this comment

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

have added code to detect. needs to be deployed to test env to confirm behaviour

Copy link
Member

Choose a reason for hiding this comment

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

Can we also use recursion rather than 3 nested calls? Just have an extra parameter remainingAttempts?

@kevodwyer kevodwyer force-pushed the fix/not-a-block-check branch from fbf2a95 to 36f6fc5 Compare November 17, 2022 07:25
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.

2 participants