Skip to content

Retry logic when getting UTXOs - #2

Open
ross-pure wants to merge 6 commits into
masterfrom
fix/retry
Open

Retry logic when getting UTXOs#2
ross-pure wants to merge 6 commits into
masterfrom
fix/retry

Conversation

@ross-pure

Copy link
Copy Markdown
Member

This PR adds retry logic when getting UTXOs.

Motivation

Currently, when getting UTXOs, all errors that can happen when processing the response are treated equally. However, in some cases instead of returning the error and exiting the function, we want to retry the request.

Changes

Simple retry logic has been added to GetUTXOs. It retries when it sees a status code greater than or equal to 500.

@ross-pure ross-pure self-assigned this Jul 2, 2019
@ross-pure
ross-pure requested review from tok-kkk and vinceau July 2, 2019 02:30
Comment thread clients/mercury.go
Comment thread clients/mercury.go
@0x31
0x31 removed the request for review from vinceau February 22, 2022 11:15
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.

3 participants