mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-22 04:28:01 +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())
|
||||
.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.
|
||||
let (tx, mut rx) = futures::channel::mpsc::unbounded::<FromShardWebsocket>();
|
||||
tokio::spawn(async move {
|
||||
while let Some(msg) = rx.next().await {
|
||||
for conn in &mut conns {
|
||||
|
||||
Reference in New Issue
Block a user