Skip to content

Commit 5179d78

Browse files
chore: fix some comments (#5661)
## Description <!-- Please write a summary of your changes and why you made them. This section will appear as the commit message after merging. Please craft it accordingly. For a quick primer on good commit messages, check out this blog post: https://cbea.ms/git-commit/ Please include any relevant issues in here, for example: Related https://github.com/libp2p/rust-libp2p/issues/ABCD. Fixes https://github.com/libp2p/rust-libp2p/issues/XYZ. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR which don't need to go into the final commit message. --> ## Change checklist <!-- Please add a Changelog entry in the appropriate crates and bump the crate versions if needed. See <https://github.com/libp2p/rust-libp2p/blob/master/docs/release.md#development-between-releases>--> - [x] I have performed a self-review of my own code - [ ] I have made corresponding changes to the documentation - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] A changelog entry has been made in the appropriate crates --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent d021ce2 commit 5179d78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

protocols/gossipsub/src/behaviour.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ where
947947
&& !self.backoffs.is_backoff_with_slack(topic_hash, p)
948948
});
949949

950-
// Add up to mesh_n of them them to the mesh
950+
// Add up to mesh_n of them to the mesh
951951
// NOTE: These aren't randomly added, currently FIFO
952952
let add_peers = std::cmp::min(peers.len(), self.config.mesh_n());
953953
tracing::debug!(

protocols/gossipsub/src/peer_score/params.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub struct TopicScoreParams {
229229

230230
/// P1: time in the mesh
231231
/// This is the time the peer has been grafted in the mesh.
232-
/// The value of of the parameter is the `time/time_in_mesh_quantum`, capped by `time_in_mesh_cap`
232+
/// The value of the parameter is the `time/time_in_mesh_quantum`, capped by `time_in_mesh_cap`
233233
/// The weight of the parameter must be positive (or zero to disable).
234234
pub time_in_mesh_weight: f64,
235235
pub time_in_mesh_quantum: Duration,

0 commit comments

Comments
 (0)