mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-18 05:01:02 +00:00
remove final use of futures::mpsc and replace with flume
This commit is contained in:
@@ -52,8 +52,11 @@ impl AggregatorSet {
|
|||||||
.map(|a| a.subscribe_shard())
|
.map(|a| a.subscribe_shard())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
let (tx, rx) = flume::unbounded::<FromShardWebsocket>();
|
||||||
|
let mut rx = rx.into_stream();
|
||||||
|
let tx = tx.into_sink();
|
||||||
|
|
||||||
// Send every incoming message to all aggregators.
|
// Send every incoming message to all aggregators.
|
||||||
let (tx, mut rx) = futures::channel::mpsc::unbounded::<FromShardWebsocket>();
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
while let Some(msg) = rx.next().await {
|
while let Some(msg) = rx.next().await {
|
||||||
for conn in &mut conns {
|
for conn in &mut conns {
|
||||||
|
|||||||
Reference in New Issue
Block a user