Skip to content

Commit

Permalink
ffi(nostr-sdk): add Client::add_relays
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 5, 2024
1 parent 9112168 commit f6416e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/nostr-sdk-ffi/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ impl Client {
Ok(self.inner.add_relay(url)?)
}

// TODO: add add_relay_with_opts
pub fn add_relays(&self, relays: Vec<String>) -> Result<()> {
Ok(self.inner.add_relays(relays)?)
}

pub fn remove_relay(&self, url: String) -> Result<()> {
Ok(self.inner.remove_relay(url)?)
}

// TODO: add add_relays

pub fn connect_relay(&self, url: String) -> Result<()> {
Ok(self.inner.connect_relay(url)?)
}
Expand Down

0 comments on commit f6416e1

Please sign in to comment.