We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pubsub_publish()
1 parent 8755609 commit 6b7b55dCopy full SHA for 6b7b55d
rust/hermes-ipfs/src/lib.rs
@@ -515,23 +515,15 @@ impl HermesIpfs {
515
/// * `topic` - `impl Into<String>`
516
/// * `message` - `Vec<u8>`
517
///
518
- /// ## Returns
519
- ///
520
- /// * `Result<MessageId>`
521
522
/// ## Errors
523
524
/// Returns error if unable to publish to a pubsub topic.
525
pub async fn pubsub_publish(
526
&self,
527
- topic: impl Into<String>,
+ topic: impl IntoGossipsubTopic,
528
message: Vec<u8>,
529
- ) -> anyhow::Result<MessageId> {
530
- // self.node
531
- // .pubsub_publish(topic, message)
532
- // .await
533
- // .map(std::convert::Into::into)
534
- todo!()
+ ) -> anyhow::Result<()> {
+ self.node.pubsub_publish(topic, message).await
535
}
536
537
/// Ban peer from node.
0 commit comments