summaryrefslogtreecommitdiffstats
path: root/ipfs-api/examples/replace_config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/examples/replace_config.rs')
-rw-r--r--ipfs-api/examples/replace_config.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/examples/replace_config.rs b/ipfs-api/examples/replace_config.rs
index f19c113..76cc96f 100644
--- a/ipfs-api/examples/replace_config.rs
+++ b/ipfs-api/examples/replace_config.rs
@@ -11,7 +11,8 @@ use std::io::Cursor;
// Creates an Ipfs client, and replaces the config file with the default one.
//
-#[tokio::main]
+#[cfg_attr(feature = "actix", actix_rt::main)]
+#[cfg_attr(feature = "hyper", tokio::main)]
async fn main() {
eprintln!("note: this must be run in the root of the project repository");
eprintln!("connecting to localhost:5001...");