summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerris Tseng <ferris@navapbc.com>2019-12-25 01:29:04 -0500
committerFerris Tseng <ferris@navapbc.com>2019-12-25 01:29:04 -0500
commit9007b1765cf821e8b813cde38989bf7164fa84ee (patch)
treee9acc054eaccd3e3a38e61b779ccafbbd9d84585
parent5a2fe5094af7ec6e461c07f0b75364d9092cc0b4 (diff)
use boxed_local to get around Send requirement
-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,