Skip to content

fix: make gRPC observers waitForReady#581

Merged
bmc08gt merged 2 commits intorelease/2.1.13from
fix/cash-link-receiving
Oct 7, 2024
Merged

fix: make gRPC observers waitForReady#581
bmc08gt merged 2 commits intorelease/2.1.13from
fix/cash-link-receiving

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented Oct 7, 2024

This affected probably n number of things when this was recently converted away from a ViewModel into a standalone Singleton to support SessionController (previously HomeViewModel) usage outside of just the camera screen (e.g chat). The scoping that existed in it, however, didn't associate a supervisor Job so a generic one was established. This had the adverse affects of cancelling any and all running job's within the scope if one inadvertently failed for any reason. This impacted cash link receiving as a byproduct.

Setup a supervisor job, on the IO thread, to alleviate the issue and allow child jobs to fail independently as expected.

…being cancelled if one fails

This affected probably n number of things when this was recently converted away from a ViewModel into a standalone Singleton to support SessionController (previously HomeViewModel) usage outside of just the camera screen (e.g chat). The scoping that existed in it, however, didn't associate a supervisor Job so a generic one was established. This had the adverse affects of cancelling any and all running job's within the scope if one inadvertently failed for any reason. This impacted cash link receiving as a byproduct.

Setup a supervisor job, on the IO thread, to alleviate the issue and allow child jobs to fail independently as expected.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Oct 7, 2024
@bmc08gt bmc08gt marked this pull request as draft October 7, 2024 12:43
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt changed the title fix(session): utilize a supervisorJob to prevent all child jobs from being cancelled if one fails fix: make gRPC observers waitForReady Oct 7, 2024
@bmc08gt bmc08gt marked this pull request as ready for review October 7, 2024 14:17
@bmc08gt bmc08gt merged commit dd9f2f7 into release/2.1.13 Oct 7, 2024
@bmc08gt bmc08gt deleted the fix/cash-link-receiving branch October 7, 2024 14: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.

1 participant