diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:29:35 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:29:35 +0100 |
commit | a23b897b5c3c9ee721b793e26401d1863d97f84e (patch) | |
tree | d22a4fb5735bc72704f2622a4748ec3ba5c6189e /lib/src/client.rs | |
parent | 860177170ce583be7c7d86d8d81fdc6a7c402dc4 (diff) | |
parent | 5a58021581187d11fb26d0de9d19514e6383956f (diff) |
Merge branch 'gossipping-gui'
Diffstat (limited to 'lib/src/client.rs')
-rw-r--r-- | lib/src/client.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/src/client.rs b/lib/src/client.rs index d985769..2128f76 100644 --- a/lib/src/client.rs +++ b/lib/src/client.rs @@ -122,6 +122,10 @@ impl Client { self.get::<S>(cid).await.map(|v| v.0) } + + pub async fn pubsub_subscribe(&self, topic: String) -> Result<ipfs::SubscriptionStream> { + self.ipfs.pubsub_subscribe(topic).await.map_err(anyhow::Error::from) + } } fn now() -> DateTime { |