mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: correct the docs (#14070)
This commit is contained in:
@ -80,7 +80,7 @@ impl EthereumNode {
|
|||||||
/// .unwrap();
|
/// .unwrap();
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// # Open a Providerfactory manually with with all required componets
|
/// # Open a Providerfactory manually with with all required components
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// use reth_chainspec::ChainSpecBuilder;
|
/// use reth_chainspec::ChainSpecBuilder;
|
||||||
|
|||||||
@ -617,7 +617,7 @@ async fn test_exceed_outgoing_connections() {
|
|||||||
|
|
||||||
handle.add_peer(*handle1.peer_id(), handle1.local_addr());
|
handle.add_peer(*handle1.peer_id(), handle1.local_addr());
|
||||||
|
|
||||||
// wait 2 seconds, the number of connections is still 1, indicating tha max outbound is in
|
// wait 2 seconds, the number of connections is still 1, indicating that the max outbound is in
|
||||||
// effect.
|
// effect.
|
||||||
tokio::time::sleep(Duration::from_secs(2)).await;
|
tokio::time::sleep(Duration::from_secs(2)).await;
|
||||||
assert_eq!(handle.num_connected_peers(), 1);
|
assert_eq!(handle.num_connected_peers(), 1);
|
||||||
|
|||||||
@ -55,7 +55,7 @@ impl<N> ProviderFactoryBuilder<N> {
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// # Open an unmonitored instace
|
/// # Open an unmonitored instance
|
||||||
///
|
///
|
||||||
/// This is recommended when no changes to the static files are expected (e.g. no active node)
|
/// This is recommended when no changes to the static files are expected (e.g. no active node)
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user