Skip to content

Commit

Permalink
increment hops
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Neamtu authored and Stefan Neamtu committed Oct 4, 2024
1 parent ab05d20 commit fa38aa3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions chain/network/src/peer/peer_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,10 +1431,7 @@ impl PeerActor {
}
} else {
if msg.decrease_ttl() {
msg.num_hops.map(|mut hops| {
hops += 1;
hops
});
msg.num_hops = msg.num_hops.map(|hops| hops + 1);
self.network_state.send_message_to_peer(&self.clock, conn.tier, msg);
} else {
#[cfg(test)]
Expand Down

0 comments on commit fa38aa3

Please sign in to comment.