You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/nostr-sdk/src/client/mod.rs
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,7 @@ impl Client {
173
173
/// * unset the signer
174
174
///
175
175
/// This method will NOT:
176
-
/// * reset [`Options`]
176
+
/// * reset [`ClientOptions`]
177
177
/// * remove the database
178
178
/// * clear the gossip graph
179
179
pubasyncfnreset(&self){
@@ -305,7 +305,7 @@ impl Client {
305
305
/// If are set pool subscriptions, the new added relay will inherit them. Use [`Client::subscribe_to`] method instead of [`Client::subscribe`],
306
306
/// to avoid to set pool subscriptions.
307
307
///
308
-
/// This method use previously set or default [`Options`] to configure the [`Relay`] (ex. set proxy, set min POW, set relay limits, ...).
308
+
/// This method use previously set or default [`ClientOptions`] to configure the [`Relay`] (ex. set proxy, set min POW, set relay limits, ...).
309
309
/// To use custom [`RelayOptions`] use [`RelayPool::add_relay`].
310
310
///
311
311
/// Connection is **NOT** automatically started with relay, remember to call [`Client::connect`]!
@@ -525,7 +525,7 @@ impl Client {
525
525
/// So remember to unsubscribe when you no longer need it. You can get all your active (non-auto-closing) subscriptions
526
526
/// by calling `client.subscriptions().await`.
527
527
///
528
-
/// If `gossip` is enabled (see [`Options::gossip`]) the events will be requested also to
528
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) the events will be requested also to
529
529
/// NIP65 relays (automatically discovered) of public keys included in filters (if any).
530
530
///
531
531
/// # Auto-closing subscription
@@ -575,7 +575,7 @@ impl Client {
575
575
576
576
/// Subscribe to filters with custom [SubscriptionId]
577
577
///
578
-
/// If `gossip` is enabled (see [`Options::gossip`]) the events will be requested also to
578
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) the events will be requested also to
579
579
/// NIP65 relays (automatically discovered) of public keys included in filters (if any).
580
580
///
581
581
/// # Auto-closing subscription
@@ -679,7 +679,7 @@ impl Client {
679
679
680
680
/// Sync events with relays (negentropy reconciliation)
681
681
///
682
-
/// If `gossip` is enabled (see [`Options::gossip`]) the events will be reconciled also from
682
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) the events will be reconciled also from
683
683
/// NIP65 relays (automatically discovered) of public keys included in filters (if any).
684
684
///
685
685
/// <https://github.com/hoytech/negentropy>
@@ -723,7 +723,7 @@ impl Client {
723
723
///
724
724
/// # Gossip
725
725
///
726
-
/// If `gossip` is enabled (see [`Options::gossip`]) the events will be requested also to
726
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) the events will be requested also to
727
727
/// NIP65 relays (automatically discovered) of public keys included in filters (if any).
728
728
///
729
729
/// # Example
@@ -791,15 +791,15 @@ impl Client {
791
791
///
792
792
/// # Gossip
793
793
///
794
-
/// If `gossip` is enabled (see [`Options::gossip`]) the events will be requested also to
794
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) the events will be requested also to
795
795
/// NIP65 relays (automatically discovered) of public keys included in filters (if any).
796
796
///
797
797
/// # Notes and alternative example
798
798
///
799
799
/// This method will be deprecated in the future!
800
800
/// This is a temporary solution for who still want to query events both from database and relays and merge the result.
801
801
/// The optimal solution is to execute a [`Client::sync`] to reconcile missing events, [`Client::subscribe`] to get all
802
-
/// new future events, [`NostrEventsDatabase::query`] to query stored events and [`Client::handle_notifications`] to listen-for/handle new events (i.e. to know when update the UI).
802
+
/// new future events, [`NostrDatabase::query`] to query stored events and [`Client::handle_notifications`] to listen-for/handle new events (i.e. to know when update the UI).
803
803
/// This will allow very fast queries, low bandwidth usage (depending on how many events the client have to reconcile) and a lower load on the relays.
804
804
///
805
805
/// You can obtain the same result with:
@@ -851,7 +851,7 @@ impl Client {
851
851
///
852
852
/// # Gossip
853
853
///
854
-
/// If `gossip` is enabled (see [`Options::gossip`]) the events will be streamed also from
854
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) the events will be streamed also from
855
855
/// NIP65 relays (automatically discovered) of public keys included in filters (if any).
856
856
pubasyncfnstream_events(
857
857
&self,
@@ -951,7 +951,7 @@ impl Client {
951
951
///
952
952
/// # Gossip
953
953
///
954
-
/// If `gossip` is enabled (see [`Options::gossip`]):
954
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]):
955
955
/// - the [`Event`] will be sent also to NIP65 relays (automatically discovered);
956
956
/// - the gossip data will be updated, if the [`Event`] is a NIP17/NIP65 relay list.
957
957
#[inline]
@@ -972,7 +972,7 @@ impl Client {
972
972
///
973
973
/// # Gossip
974
974
///
975
-
/// If `gossip` is enabled (see [`Options::gossip`]) and the [`Event`] is a NIP17/NIP65 relay list,
975
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) and the [`Event`] is a NIP17/NIP65 relay list,
976
976
/// the gossip data will be updated.
977
977
#[inline]
978
978
pubasyncfnsend_event_to<I,U>(
@@ -1178,7 +1178,7 @@ impl Client {
1178
1178
1179
1179
/// Send a private direct message
1180
1180
///
1181
-
/// If `gossip` is enabled (see [`Options::gossip`]) the message will be sent to the NIP17 relays (automatically discovered).
1181
+
/// If `gossip` is enabled (see [`ClientOptions::gossip`]) the message will be sent to the NIP17 relays (automatically discovered).
1182
1182
/// If gossip is not enabled will be sent to all relays with [`RelayServiceFlags::WRITE`] flag.
0 commit comments