Skip to content

Commit bd12b6e

Browse files
committed
CRC: fix typo and remove TODO comment about unused var
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent f4bd71c commit bd12b6e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
1515

1616
- Logging improvements:
1717
- P2P logs now includes a reason for dropping a peer or neighbor
18-
- Imrpovements to how a PeerAddress is logged (human readable format vs hex)
18+
- Improvements to how a PeerAddress is logged (human readable format vs hex)
1919

2020
### Fixed
2121

stackslib/src/net/inv/epoch2x.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,29 +2302,25 @@ impl PeerNetwork {
23022302
stats.done
23032303
);
23042304
if !stats.done {
2305-
// TODO: the result of this match doesn't seem to be used? is that intentional?
23062305
match network.inv_sync_run(&mut new_pins, sortdb, nk, stats, inv_state.request_timeout, ibd) {
2307-
Ok(d) => d,
2306+
Ok(_) => {}
23082307
Err(net_error::StaleView) => {
23092308
// stop work on this state machine -- it needs to be restarted.
23102309
// we'll need to keep scanning.
23112310
debug!("{:?}: stale PoX view; will rescan", &network.local_peer);
23122311
stats.done = true;
23132312
inv_state.hint_learned_data = true;
23142313
inv_state.hint_learned_data_height = u64::MAX;
2315-
true
23162314
}
23172315
Err(net_error::PeerNotConnected) | Err(net_error::SendError(..)) => {
23182316
stats.status = NodeStatus::Dead;
2319-
true
23202317
}
23212318
Err(e) => {
23222319
debug!(
2323-
"{:?}: remote neighbor inv_sync_run finished with error {:?}",
2324-
&network.local_peer, &e
2320+
"{:?}: remote neighbor inv_sync_run finished with error {e:?}",
2321+
&network.local_peer
23252322
);
23262323
stats.status = NodeStatus::Broken;
2327-
true
23282324
}
23292325
};
23302326

0 commit comments

Comments
 (0)