-
Notifications
You must be signed in to change notification settings - Fork 204
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
fix(indy): async ledger connection issues on iOS #803
fix(indy): async ledger connection issues on iOS #803
Conversation
Signed-off-by: Patrick Kenyon <[email protected]>
How is this PR related to #804? Should we add a note to this code explaining why we're doing it in sequence instead of in parallel? Or is this change unrelated to that change? |
Will this also fix the issue with |
Codecov Report
@@ Coverage Diff @@
## main #803 +/- ##
==========================================
- Coverage 87.69% 87.50% -0.19%
==========================================
Files 437 458 +21
Lines 10807 11094 +287
Branches 1904 1863 -41
==========================================
+ Hits 9477 9708 +231
- Misses 1268 1324 +56
Partials 62 62
Continue to review full report at Codecov.
|
The issue we were having is we tried to connect to all ledgers in parallel. This would cause us to reach the resource limit very quickly, so instead of doing it in parallel we do it in sequence so we don't use too many resources.
Yes, this is the main goal of this PR. |
Can we add a comment to the relevant code explaining this? I'm worried this will get lost and 'fixed' to parallel opening of pools in the future again. |
That is really great to hear! |
Signed-off-by: Patrick Kenyon <[email protected]>
Done! |
Thansk @TheTreek, if you can update your branch I can merge! |
Sorry it's out of date again :( Can you update again? |
Change
connectToPools
function to sequentially connect to pools. Previously there were issues on iOS because of too many open sockets on this function.