Improved architecture with signle mutex
This commit is contained in:
@@ -35,11 +35,6 @@ pub async fn send_raw(data: &[u8]) -> tokio::io::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
use std::sync::{
|
||||
Arc,
|
||||
atomic::{AtomicBool, Ordering},
|
||||
};
|
||||
|
||||
#[allow(async_fn_in_trait)]
|
||||
pub trait Strategy {
|
||||
async fn start(&self) -> tokio::io::Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user