Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pubsublite): close api clients when publisher clients have termin…
…ated (#6867) Refactors the closing of API clients, such that it is done automatically if the PublisherClient permanently fails due to error. `compositeService` is now passed a `closeable`, which is closed when the `serviceTerminated` state is reached. Users don't necessarily need to call `PublisherClient.Stop` if it has permanently failed in order to close the API clients, though it is good practice to always call `Stop` when a publisher is not longer used.
- Loading branch information
Showing
6 changed files
with
85 additions
and
48 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
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