diff options
author | Ferris Tseng <ferris@navapbc.com> | 2019-12-24 17:52:16 -0500 |
---|---|---|
committer | Ferris Tseng <ferris@navapbc.com> | 2019-12-24 17:52:16 -0500 |
commit | 25d6054562187a0d46049cc0bde49f82f0fc27a2 (patch) | |
tree | aeccd876ff1e32b0e231abc332533718b90f9312 /ipfs-api/examples/dns.rs | |
parent | 3aeb20d68f969216a127585a91eebede4911230f (diff) |
use proper runtime for all examples
Diffstat (limited to 'ipfs-api/examples/dns.rs')
-rw-r--r-- | ipfs-api/examples/dns.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipfs-api/examples/dns.rs b/ipfs-api/examples/dns.rs index 327913a..02857e0 100644 --- a/ipfs-api/examples/dns.rs +++ b/ipfs-api/examples/dns.rs @@ -10,7 +10,8 @@ use ipfs_api::IpfsClient; // Creates an Ipfs client, resolves ipfs.io, and lists the contents of it. // -#[tokio::main] +#[cfg_attr(feature = "actix", actix_rt::main)] +#[cfg_attr(feature = "hyper", tokio::main)] async fn main() { eprintln!("connecting to localhost:5001..."); |