Skip to content

Commit

Permalink
chore: fix some comments (#10759)
Browse files Browse the repository at this point in the history
Signed-off-by: pavedroad <qcqs@outlook.com>
  • Loading branch information
pavedroad authored Mar 13, 2024
1 parent 7bccb45 commit e768df2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chain/network/src/peer_manager/peer_manager_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use tracing::Instrument as _;
const EXPONENTIAL_BACKOFF_RATIO: f64 = 1.1;
/// The initial waiting time between consecutive attempts to establish connection
const MONITOR_PEERS_INITIAL_DURATION: time::Duration = time::Duration::milliseconds(10);
/// How often should we check wheter local edges match the connection pool.
/// How often should we check whether local edges match the connection pool.
const FIX_LOCAL_EDGES_INTERVAL: time::Duration = time::Duration::seconds(60);
/// How much time we give fix_local_edges() to resolve the discrepancies, before forcing disconnect.
const FIX_LOCAL_EDGES_TIMEOUT: time::Duration = time::Duration::seconds(6);
Expand Down
2 changes: 1 addition & 1 deletion chain/network/src/peer_manager/tests/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ async fn max_num_peers_limit() {
// The proper solution would be to:
// 1. Make nearcore presubmit run tests with "[panic=abort]" (which is not supported with
// "cargo test"), so that the test actually stop if some thread panic.
// 2. Set some timeout on the test execution (with an enourmous heardoom), so that we actually get some logs
// 2. Set some timeout on the test execution (with an enormous heardoom), so that we actually get some logs
// if the presubmit times out (also not supported by "cargo test").
drop(pm0);
drop(pm1);
Expand Down
2 changes: 1 addition & 1 deletion tools/congestion-model/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct Args {
#[clap(long, default_value = "false")]
write_stats: bool,

/// Optional path the the file where the stats should be saved. By default
/// Optional path the file where the stats should be saved. By default
/// the stats will be saved to a file name with prefix "stats", the strategy
/// and workload name concatenated and ".csv" extension. This option can
/// only be used when a single strategy and a single workflow are selected
Expand Down

0 comments on commit e768df2

Please sign in to comment.