mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-08 00:43:10 +00:00
Missing thread-safe methods
This commit is contained in:
parent
7868dfde9a
commit
8cfe999db6
@ -194,14 +194,14 @@ impl WakuNodeHandle<Running> {
|
||||
/// Subscribe to a Waku Relay pubsub topic to receive messages
|
||||
///
|
||||
/// wrapper around [`relay::waku_relay_subscribe`]
|
||||
pub fn relay_subscribe(&mut self, pubsub_topic: Option<WakuPubSubTopic>) -> Result<()> {
|
||||
pub fn relay_subscribe(&self, pubsub_topic: Option<WakuPubSubTopic>) -> Result<()> {
|
||||
relay::waku_relay_subscribe(pubsub_topic)
|
||||
}
|
||||
|
||||
/// Closes the pubsub subscription to a pubsub topic. No more messages will be received from this pubsub topic
|
||||
///
|
||||
/// wrapper around [`relay::waku_relay_unsubscribe`]
|
||||
pub fn relay_unsubscribe(&mut self, pubsub_topic: Option<WakuPubSubTopic>) -> Result<()> {
|
||||
pub fn relay_unsubscribe(&self, pubsub_topic: Option<WakuPubSubTopic>) -> Result<()> {
|
||||
relay::waku_relay_unsubscribe(pubsub_topic)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user