Browse Source

add missing smol deps.

aggstam 3 years ago
parent
commit
dc4e64e355

+ 1 - 1
example/net.rs

@@ -1,8 +1,8 @@
 use std::sync::Arc;
 
-use async_executor::Executor;
 use clap::Parser;
 use simplelog::*;
+use smol::Executor;
 
 use darkfi::{
     net,

+ 1 - 1
src/consensus/proto/protocol_keep_alive.rs

@@ -1,8 +1,8 @@
 use async_std::sync::Arc;
 
-use async_executor::Executor;
 use async_trait::async_trait;
 use log::{debug, error};
+use smol::Executor;
 use url::Url;
 
 use crate::{

+ 1 - 1
src/consensus/task/keep_alive.rs

@@ -1,7 +1,7 @@
-use async_executor::Executor;
 use async_std::sync::Arc;
 use log::{debug, error};
 use rand::Rng;
+use smol::Executor;
 
 use crate::{
     consensus::{state::QUARANTINE_DURATION, KeepAlive, ValidatorStatePtr},

+ 1 - 1
src/consensus/task/proposal.rs

@@ -1,8 +1,8 @@
 use std::time::Duration;
 
-use async_executor::Executor;
 use async_std::sync::Arc;
 use log::{debug, error, info};
+use smol::Executor;
 
 use super::{consensus_sync_task, keep_alive_task};
 use crate::{