Skip to content

Commit 3852d52

Browse files
committed
Update rapid-gossip-sync docs to not reference std-only methods
1 parent f9acac8 commit 3852d52

File tree

1 file changed

+3
-3
lines changed
  • lightning-rapid-gossip-sync/src

1 file changed

+3
-3
lines changed

lightning-rapid-gossip-sync/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//!
3939
//! After the gossip data snapshot has been downloaded, one of the client's graph processing
4040
//! functions needs to be called. In this example, we process the update by reading its contents
41-
//! from disk, which we do by calling [sync_network_graph_with_file_path]:
41+
//! from disk, which we do by calling [`RapidGossipSync::update_network_graph`]:
4242
//!
4343
//! ```
4444
//! use bitcoin::blockdata::constants::genesis_block;
@@ -56,9 +56,9 @@
5656
//! let block_hash = genesis_block(Network::Bitcoin).header.block_hash();
5757
//! let network_graph = NetworkGraph::new(block_hash, &logger);
5858
//! let rapid_sync = RapidGossipSync::new(&network_graph);
59-
//! let new_last_sync_timestamp_result = rapid_sync.sync_network_graph_with_file_path("./rapid_sync.lngossip");
59+
//! let snapshot_contents: &[u8] = &[0; 0];
60+
//! let new_last_sync_timestamp_result = rapid_sync.update_network_graph(snapshot_contents);
6061
//! ```
61-
//! [sync_network_graph_with_file_path]: RapidGossipSync::sync_network_graph_with_file_path
6262
6363
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
6464

0 commit comments

Comments
 (0)