Remove tokio dependency from tendermint-machine

Indirects it via a minimal wrapper which can be trivially patched.
This commit is contained in:
Luke Parker
2024-09-05 16:30:27 -04:00
parent efc7d70ab1
commit ac7b98daac
10 changed files with 70 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ use futures_util::{
FutureExt, StreamExt, SinkExt,
future::{self, Fuse},
};
use tokio::time::sleep;
use patchable_async_sleep::sleep;
use serai_db::{Get, DbTxn, Db};

View File

@@ -5,7 +5,7 @@ use std::{
};
use futures_util::{FutureExt, future};
use tokio::time::sleep;
use patchable_async_sleep::sleep;
use crate::{
time::CanonicalInstant,