diff --git a/src/lib.rs b/src/lib.rs index 6d44f2c..3ed1332 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,7 @@ use std::net::SocketAddr; pub use network::get_edge; use network::{async_main, init_edge, NodeConfig}; -use tokio::sync::mpsc::Receiver; +use tokio::sync::mpsc::{channel, Receiver}; use tokio_util::sync::CancellationToken; use tracing::{debug, error}; pub use utils::CommandLine; @@ -32,7 +32,7 @@ pub async fn run_sdlan( let edge_uuid = create_or_load_uuid("")?; let node_conf = parse_config(edge_uuid, &args).await?; - if let Err(e) = init_edge(&args.token, node_conf, args.tos).await { + if let Err(e) = init_edge(&args.token, node_conf, args.tos, start_stop_sender).await { panic!("failed to init edge: {:?}", e); }