Skip to content

Commit

Permalink
tweak: pass IpAddr by value
Browse files Browse the repository at this point in the history
Signed-off-by: ljedrz <[email protected]>
  • Loading branch information
ljedrz committed Aug 26, 2022
1 parent 2fc2669 commit 41bb295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snarkos/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl<N: Network> Ledger<N> {
// Internal operations.
impl<N: Network> Ledger<N> {
/// Syncs the ledger with the network.
pub(crate) async fn initial_sync_with_network(self: &Arc<Self>, leader_ip: &IpAddr) -> Result<()> {
pub(crate) async fn initial_sync_with_network(self: &Arc<Self>, leader_ip: IpAddr) -> Result<()> {
/// The number of concurrent requests with the network.
const CONCURRENT_REQUESTS: usize = 100;
/// Url to fetch the blocks from.
Expand Down

0 comments on commit 41bb295

Please sign in to comment.