-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify BidirectionalChannelHalf new and spawn
As suggested by @jarhodes314. Let BidirectionalChannelHalf::new take the AsyncClient target and spawn the publisher loop. Doing so, the unbounded receiver can be directly passed to spawn_publisher with no need to be temporarily store in the BidirectionalChannelHalf struct. Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
- Loading branch information
1 parent
3b2235f
commit 5783f15
Showing
1 changed file
with
34 additions
and
22 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