Skip to content

Commit 90c4115

Browse files
committed
sdk: add Options::pool
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 8ecffa5 commit 90c4115

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
* mls-memory-storage: add an in-memory implementation for MLS ([JeffG] at https://github.com/rust-nostr/nostr/pull/839)
3939
* mls-sqlite-storage: a sqlite implementation for MLS ([JeffG] at https://github.com/rust-nostr/nostr/pull/842)
4040
* mls: add new crate for implementing MLS messaging ([JeffG] at https://github.com/rust-nostr/nostr/pull/843)
41+
* sdk: add `Options::pool` ([Yuki Kishimoto])
4142

4243
## v0.41.0 - 2025/04/15
4344

crates/nostr-sdk/src/client/options.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ impl Options {
101101
self.pool = self.pool.notification_channel_size(size);
102102
self
103103
}
104+
105+
/// Set relay pool options
106+
#[inline]
107+
pub fn pool(mut self, opts: RelayPoolOptions) -> Self {
108+
self.pool = opts;
109+
self
110+
}
104111
}
105112

106113
/// Connection target

0 commit comments

Comments
 (0)