edge info
This commit is contained in:
parent
2052dec944
commit
b31aac3566
@ -10,7 +10,7 @@ use std::net::SocketAddr;
|
|||||||
|
|
||||||
pub use network::get_edge;
|
pub use network::get_edge;
|
||||||
use network::{async_main, init_edge, NodeConfig};
|
use network::{async_main, init_edge, NodeConfig};
|
||||||
use tokio::sync::mpsc::Receiver;
|
use tokio::sync::mpsc::{channel, Receiver};
|
||||||
use tokio_util::sync::CancellationToken;
|
use tokio_util::sync::CancellationToken;
|
||||||
use tracing::{debug, error};
|
use tracing::{debug, error};
|
||||||
pub use utils::CommandLine;
|
pub use utils::CommandLine;
|
||||||
@ -32,7 +32,7 @@ pub async fn run_sdlan(
|
|||||||
let edge_uuid = create_or_load_uuid("")?;
|
let edge_uuid = create_or_load_uuid("")?;
|
||||||
let node_conf = parse_config(edge_uuid, &args).await?;
|
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);
|
panic!("failed to init edge: {:?}", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user