Skip to content

Commit

Permalink
bindings: fix Client::pool method
Browse files Browse the repository at this point in the history
Ref e7ab860

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
  • Loading branch information
yukibtc committed Nov 1, 2024
1 parent 6bfddfa commit bf7e597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/nostr-sdk-ffi/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Client {

/// Get relay pool
pub fn pool(&self) -> Arc<RelayPool> {
Arc::new(self.inner.pool().into())
Arc::new(self.inner.pool().clone().into())
}

pub fn database(&self) -> NostrDatabase {
Expand Down
2 changes: 1 addition & 1 deletion bindings/nostr-sdk-js/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl JsClient {

#[wasm_bindgen(getter)]
pub fn pool(&self) -> JsRelayPool {
self.inner.pool().into()
self.inner.pool().clone().into()
}

#[wasm_bindgen(getter)]
Expand Down

0 comments on commit bf7e597

Please sign in to comment.