-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove khepri:wait_for_async_ret/1,2 in favor of handle_async_ret/2
See the parent commit: `wait_for_async_ret/1,2` used a selective receive to find whether a given correlation ID was applied. The `ra_event` emitted when a batch is applied gives all correlation and result pairs applied in the batch though, making it impossible to reliably find a single correlation ID. We should instead have the caller perform the `receive` to find the applied/rejected event and handle all of the correlation IDs found within. So this change removes `wait_for_async_ret/1,2` in favor of the `handle_async_ret/2` function added in the parent commit.
- Loading branch information
1 parent
0362e0d
commit 401f44b
Showing
3 changed files
with
12 additions
and
76 deletions.
There are no files selected for viewing
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
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
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