summaryrefslogtreecommitdiffstats
path: root/ipfs-api/examples/get_stats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/examples/get_stats.rs')
-rw-r--r--ipfs-api/examples/get_stats.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/examples/get_stats.rs b/ipfs-api/examples/get_stats.rs
index 36100a5..f6eef0f 100644
--- a/ipfs-api/examples/get_stats.rs
+++ b/ipfs-api/examples/get_stats.rs
@@ -10,7 +10,8 @@ use ipfs_api::IpfsClient;
// Creates an Ipfs client, and gets some stats about the Ipfs server.
//
-#[tokio::main]
+#[cfg_attr(feature = "actix", actix_rt::main)]
+#[cfg_attr(feature = "hyper", tokio::main)]
async fn main() {
eprintln!("connecting to localhost:5001...");