Skip to content

Commit be50f47

Browse files
committed
sdk: deprecate Options::notification_channel_size
From 90c4115 is possible to set the `RelayPoolOptions`, so this is no longer needed. Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 90c4115 commit be50f47

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
* mls: add new crate for implementing MLS messaging ([JeffG] at https://github.com/rust-nostr/nostr/pull/843)
4141
* sdk: add `Options::pool` ([Yuki Kishimoto])
4242

43+
### Deprecated
44+
45+
* sdk: deprecate `Options::notification_channel_size` ([Yuki Kishimoto])
46+
4347
## v0.41.0 - 2025/04/15
4448

4549
### Breaking changes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl Options {
9696
}
9797

9898
/// Notification channel size (default: [`DEFAULT_NOTIFICATION_CHANNEL_SIZE`])
99-
#[inline]
99+
#[deprecated(since = "0.42.0", note = "Use `Options::pool` instead.")]
100100
pub fn notification_channel_size(mut self, size: usize) -> Self {
101101
self.pool = self.pool.notification_channel_size(size);
102102
self

0 commit comments

Comments
 (0)