File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22// Copyright (c) 2023-2025 Rust Nostr Developers
33// Distributed under the MIT software license
44
5+ use nostr_gossip_memory:: prelude:: * ;
56use nostr_sdk:: prelude:: * ;
67
78#[ tokio:: main]
89async fn main ( ) -> Result < ( ) > {
910 tracing_subscriber:: fmt:: init ( ) ;
1011
1112 let keys = Keys :: parse ( "nsec12kcgs78l06p30jz7z7h3n2x2cy99nw2z6zspjdp7qc206887mwvs95lnkx" ) ?;
13+ let gossip = NostrGossipMemory :: unbounded ( ) ;
1214 let client = Client :: builder ( )
1315 . signer ( keys. clone ( ) )
14- . opts ( ClientOptions :: new ( ) . gossip ( true ) )
16+ . gossip ( gossip )
1517 . build ( ) ;
1618
1719 println ! ( "Bot public key: {}" , keys. public_key( ) . to_bech32( ) ?) ;
Original file line number Diff line number Diff line change @@ -76,8 +76,7 @@ impl Client {
7676 /// use nostr_sdk::prelude::*;
7777 ///
7878 /// let signer = Keys::generate();
79- /// let opts = ClientOptions::default().gossip(true);
80- /// let client: Client = Client::builder().signer(signer).opts(opts).build();
79+ /// let client: Client = Client::builder().signer(signer).build();
8180 /// ```
8281 #[ inline]
8382 pub fn builder ( ) -> ClientBuilder {
You can’t perform that action at this time.
0 commit comments