fix: fix builds on windows platform (#263)

This commit is contained in:
Olof Blomqvist 2023-06-21 18:39:43 +02:00 committed by GitHub
parent 4c227141e2
commit d1f61a3992
5 changed files with 20 additions and 2 deletions

View file

@ -43,6 +43,7 @@ async fn do_chainsync(client: &mut NodeClient) {
}
}
#[cfg(target_family = "unix")]
#[tokio::main]
async fn main() {
tracing::subscriber::set_global_default(
@ -66,6 +67,7 @@ async fn main() {
}
#[cfg(not(target_family = "unix"))]
fn main() {
panic!("can't use n2c unix socket on non-unix systems");
}