From 9007b1765cf821e8b813cde38989bf7164fa84ee Mon Sep 17 00:00:00 2001 From: Ferris Tseng Date: Wed, 25 Dec 2019 01:29:04 -0500 Subject: use boxed_local to get around Send requirement --- ipfs-api/examples/pubsub.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipfs-api/examples/pubsub.rs b/ipfs-api/examples/pubsub.rs index bed0aae..2d24278 100644 --- a/ipfs-api/examples/pubsub.rs +++ b/ipfs-api/examples/pubsub.rs @@ -41,9 +41,9 @@ async fn main() { eprintln!(); eprintln!("publishing message..."); - publish_client.pubsub_pub(TOPIC, "Hello World!") + publish_client.pubsub_pub(TOPIC, "Hello World!").boxed_local() }) - .boxed() + .boxed_local() .fuse(); // This block will execute a future that suscribes to a topic, -- cgit v1.2.3