Skip to content

Commit 1856fd3

Browse files
committed
rustfmt: Prepare lightning-rapid-gossip-sync/src/processing.rs
1 parent f45a840 commit 1856fd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ impl<NG: Deref<Target=NetworkGraph<L>>, L: Deref> RapidGossipSync<NG, L> where L
234234
let node_id_1_index: BigSize = Readable::read(read_cursor)?;
235235
let mut node_id_2_index: BigSize = Readable::read(read_cursor)?;
236236
let has_additional_data = (node_id_2_index.0 & (1 << 63)) > 0;
237-
node_id_2_index.0 &= !(1 << 63); // ensure 63rd bit isn't set
237+
// ensure 63rd bit isn't set
238+
node_id_2_index.0 &= !(1 << 63);
238239

239240
if max(node_id_1_index.0, node_id_2_index.0) >= node_id_count as u64 {
240241
return Err(DecodeError::InvalidValue.into());
@@ -282,7 +283,8 @@ impl<NG: Deref<Target=NetworkGraph<L>>, L: Deref> RapidGossipSync<NG, L> where L
282283
}
283284
}
284285

285-
previous_scid = 0; // updates start at a new scid
286+
// updates start at a new scid
287+
previous_scid = 0;
286288

287289
let update_count: u32 = Readable::read(read_cursor)?;
288290
log_debug!(self.logger, "Processing RGS update from {} with {} nodes, {} channel announcements and {} channel updates.",

0 commit comments

Comments
 (0)