-
Notifications
You must be signed in to change notification settings - Fork 35
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
[#1179] Handle false positive getSubtreeRoots when connectivity is down #1222
Merged
LukasKorba
merged 1 commit into
Electric-Coin-Company:feature/DAG-sync
from
LukasKorba:1179-Handle-false-positive-getSubtreeRoots-when-connectivity-is-down
Aug 31, 2023
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HonzaR
approved these changes
Aug 31, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a question inline.
@@ -39,6 +39,8 @@ extension UpdateSubtreeRootsAction: Action { | |||
for try await subtreeRoot in stream { | |||
roots.append(subtreeRoot) | |||
} | |||
} catch ZcashError.serviceSubtreeRootsStreamFailed(LightWalletServiceError.timeOut) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the connectivity issue in the iOS world always result in the timeout error?
…en connectivity is down - when getSubtreeRoots call fails on timeout, the connectivity is not present and the action must be terminated (throw) an error, this way when the connectivity is back, the State Machine starts over and getSubtreeRoots get a chance to properly decide if SBS is supported [Electric-Coin-Company#1179] Handle false positive getSubtreeRoots when connectivity is down - unit test for the timeout getSubtreeRoot added [Electric-Coin-Company#1179] Handle false positive getSubtreeRoots when connectivity is down (Electric-Coin-Company#1222) - warning fixed
LukasKorba
force-pushed
the
1179-Handle-false-positive-getSubtreeRoots-when-connectivity-is-down
branch
from
August 31, 2023 10:49
5097029
to
f1c61f8
Compare
LukasKorba
merged commit Aug 31, 2023
d880d25
into
Electric-Coin-Company:feature/DAG-sync
1 check passed
LukasKorba
added a commit
to LukasKorba/ZcashLightClientKit
that referenced
this pull request
Sep 7, 2023
…en connectivity is down - when getSubtreeRoots call fails on timeout, the connectivity is not present and the action must be terminated (throw) an error, this way when the connectivity is back, the State Machine starts over and getSubtreeRoots get a chance to properly decide if SBS is supported [Electric-Coin-Company#1179] Handle false positive getSubtreeRoots when connectivity is down - unit test for the timeout getSubtreeRoot added [Electric-Coin-Company#1179] Handle false positive getSubtreeRoots when connectivity is down (Electric-Coin-Company#1222) - warning fixed
LukasKorba
added a commit
that referenced
this pull request
Sep 7, 2023
- when getSubtreeRoots call fails on timeout, the connectivity is not present and the action must be terminated (throw) an error, this way when the connectivity is back, the State Machine starts over and getSubtreeRoots get a chance to properly decide if SBS is supported [#1179] Handle false positive getSubtreeRoots when connectivity is down - unit test for the timeout getSubtreeRoot added [#1179] Handle false positive getSubtreeRoots when connectivity is down (#1222) - warning fixed
LukasKorba
deleted the
1179-Handle-false-positive-getSubtreeRoots-when-connectivity-is-down
branch
October 4, 2023 06:57
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1179
This code review checklist is intended to serve as a starting point for the author and reviewer, although it may not be appropriate for all types of changes (e.g. fixing a spelling typo in documentation). For more in-depth discussion of how we think about code review, please see Code Review Guidelines.
Author
Reviewer