summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipfs-api/examples/pubsub.rs4
1 files 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,