Use futures mpsc instead of tokio

This commit is contained in:
Luke Parker
2022-11-08 21:14:03 -05:00
parent 16a2c9a2dc
commit 56a21ca6a6
5 changed files with 137 additions and 113 deletions

View File

@@ -8,7 +8,7 @@ use async_trait::async_trait;
use log::{warn, error};
use futures::{
StreamExt,
SinkExt, StreamExt,
channel::mpsc::{self, UnboundedSender},
};
@@ -170,7 +170,7 @@ impl<T: TendermintValidator> TendermintAuthority<T> {
let (gossip_tx, mut gossip_rx) = mpsc::unbounded();
// Create the Tendermint machine
let handle = {
let mut handle = {
// Set this struct as active
*self.import.providers.write().await = Some(providers);
self.active = Some(ActiveAuthority {