-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(MLS): allow returning values when generating commits. (#2609)
This should cause no changes in behaviour at all, but will allow customisation of some MLS pipelines in the near future. This refactors the `retryOnCommitFailure` function (renamed to `produceAndSendCommitWithRetryAndResult`), so it allows returning a produced value if the commit succeeds. The function now takes the responsibility of sending the generated commit, instead of relying on the callers to do so. It also conveniently provides a MLSClient for the callers, as this is the way to obtain a `CommitBundle`. (cherry picked from commit 390b880)
- Loading branch information
1 parent
2b91cb1
commit ded4598
Showing
1 changed file
with
187 additions
and
110 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