generalize node holder connection
This commit is contained in:
parent
7ea43b101d
commit
3e2dc9099a
7 changed files with 30 additions and 31 deletions
|
|
@ -1,13 +1,17 @@
|
|||
use proxy_common::ProxyStartupParam;
|
||||
use std::process::abort;
|
||||
|
||||
use proxy::edge_node_dc_callback;
|
||||
use proxy_common::{ProxyStartupParam, setup_edge_node_connection};
|
||||
use rnex_core::common::setup;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
setup();
|
||||
|
||||
proxy::start_insecure(
|
||||
ProxyStartupParam::new(proxy_common::ProxyType::Insecure)
|
||||
.expect("unable to get startup parameters"),
|
||||
)
|
||||
.await;
|
||||
let param = ProxyStartupParam::new(proxy_common::ProxyType::Insecure)
|
||||
.expect("unable to get startup parameters");
|
||||
|
||||
setup_edge_node_connection(¶m, edge_node_dc_callback).await;
|
||||
|
||||
proxy::start_insecure(param).await;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue