mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-26 11:53:31 +03:00
add cfg flag for tcp
This commit is contained in:
parent
e57c97ea64
commit
3966aecb5e
@ -167,6 +167,7 @@ async fn main() {
|
|||||||
|
|
||||||
let our_ip = find_public_ip().await;
|
let our_ip = find_public_ip().await;
|
||||||
let (ws_tcp_handle, ws_flag_used) = setup_networking(ws_networking_port).await;
|
let (ws_tcp_handle, ws_flag_used) = setup_networking(ws_networking_port).await;
|
||||||
|
#[cfg(not(feature = "simulation-mode"))]
|
||||||
let (tcp_tcp_handle, tcp_flag_used) = setup_networking(tcp_networking_port).await;
|
let (tcp_tcp_handle, tcp_flag_used) = setup_networking(tcp_networking_port).await;
|
||||||
|
|
||||||
#[cfg(feature = "simulation-mode")]
|
#[cfg(feature = "simulation-mode")]
|
||||||
|
Loading…
Reference in New Issue
Block a user