From: Elias Rohrer Date: Thu, 20 Jun 2024 08:53:29 +0000 (+0200) Subject: `rustfmt`: Prepare `lightning-rapid-gossip-sync/src/processing.rs` X-Git-Tag: v0.0.124-beta~73^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=1856fd3d64580ed7c76651206dbe305a9cce4cdf;p=rust-lightning `rustfmt`: Prepare `lightning-rapid-gossip-sync/src/processing.rs` --- diff --git a/lightning-rapid-gossip-sync/src/processing.rs b/lightning-rapid-gossip-sync/src/processing.rs index b996cfaca..11cd69e20 100644 --- a/lightning-rapid-gossip-sync/src/processing.rs +++ b/lightning-rapid-gossip-sync/src/processing.rs @@ -234,7 +234,8 @@ impl>, L: Deref> RapidGossipSync where L let node_id_1_index: BigSize = Readable::read(read_cursor)?; let mut node_id_2_index: BigSize = Readable::read(read_cursor)?; let has_additional_data = (node_id_2_index.0 & (1 << 63)) > 0; - node_id_2_index.0 &= !(1 << 63); // ensure 63rd bit isn't set + // ensure 63rd bit isn't set + node_id_2_index.0 &= !(1 << 63); if max(node_id_1_index.0, node_id_2_index.0) >= node_id_count as u64 { return Err(DecodeError::InvalidValue.into()); @@ -282,7 +283,8 @@ impl>, L: Deref> RapidGossipSync where L } } - previous_scid = 0; // updates start at a new scid + // updates start at a new scid + previous_scid = 0; let update_count: u32 = Readable::read(read_cursor)?; log_debug!(self.logger, "Processing RGS update from {} with {} nodes, {} channel announcements and {} channel updates.",