Remove tokio dependency from serai-coordinator-p2p

Re-implements tokio::mpsc::oneshot with a thin wrapper around async-channel.

Also replaces futures-util with futures-lite.
This commit is contained in:
Luke Parker
2025-01-09 02:16:05 -05:00
parent 9833911e06
commit 201a444e89
8 changed files with 73 additions and 22 deletions

View File

@@ -8,10 +8,11 @@ use borsh::{BorshSerialize, BorshDeserialize};
use serai_client::{primitives::NetworkId, validator_sets::primitives::ValidatorSet};
use tokio::sync::oneshot;
use serai_cosign::SignedCosign;
/// A oneshot channel.
pub mod oneshot;
/// The heartbeat task, effecting sync of Tributaries
pub mod heartbeat;