Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: goodfirm <[email protected]>
  • Loading branch information
goodfirm committed Dec 19, 2024
1 parent e692d20 commit be77ff7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchmarks/continuous/db/tool/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() -> anyhow::Result<()> {

#[derive(Debug, Parser)]
#[command(
about = "A CLI to interact with the db storing contiuous benchmark data. Commands that connect to the db require the env var DATABASE_URL_CLI to be set in a format compatible with the diesel crate. Consider sourcing the dbprofile file in the repository.",
about = "A CLI to interact with the db storing continuous benchmark data. Commands that connect to the db require the env var DATABASE_URL_CLI to be set in a format compatible with the diesel crate. Consider sourcing the dbprofile file in the repository.",
long_about = None
)]
struct Cli {
Expand Down
2 changes: 1 addition & 1 deletion chain/network/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub struct Tier1 {
/// TIER1 can consists of hundreds of nodes, so it is not feasible to connect to all of them at
/// once.
pub new_connections_per_attempt: u64,
/// Interval between broacasts of the list of validator's proxies.
/// Interval between broadcasts of the list of validator's proxies.
/// Before the broadcast, validator tries to establish all the missing connections to proxies.
pub advertise_proxies_interval: time::Duration,
/// Support for gradual TIER1 feature rollout:
Expand Down
2 changes: 1 addition & 1 deletion chain/network/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub type AccountKeys = HashMap<AccountId, HashSet<PublicKey>>;
#[derive(Debug, Clone)]
pub struct ChainInfo {
pub tracked_shards: Vec<ShardId>,
// The lastest block on chain.
// The latest block on chain.
pub block: Block,
// Public keys of accounts participating in the BFT consensus
// It currently includes "block producers", "chunk producers" and "approvers".
Expand Down
2 changes: 1 addition & 1 deletion docs/practices/workflows/profiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $ perf record -e cpu-clock -F1000 -g --call-graph fp,65528 YOUR_COMMAND_HERE

### Profiling with hardware counters

As mentioned earlier, sampling profiler is probablistic and the data it produces is only really
As mentioned earlier, sampling profiler is probabilistic and the data it produces is only really
suitable for a broad overview. Any attempt to analyze the performance of the code at the
microarchitectural level (which you might want to do if investigating how to speed up a small but
frequently invoked function) will be severely hampered by the low quality of data.
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/tests/client/resharding_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl TestReshardingEnv {
let shard_layout = client.epoch_manager.get_shard_layout(&epoch_id).unwrap();
for shard_id in shard_layout.shard_ids() {
// get hash of the last block that we need to check that it has empty chunks for the shard
// if `get_next_block_hash_with_new_chunk` returns None, that would be the lastest block
// if `get_next_block_hash_with_new_chunk` returns None, that would be the latest block
// on chain, otherwise, that would be the block before the `block_hash` that the function
// call returns
let next_block_hash_with_new_chunk =
Expand Down

0 comments on commit be77ff7

Please sign in to comment.