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 fcd8bb2e62
commit 31a87032ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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");
}