Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling errors and correct minor errors #341

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion node/log_entry_sync/src/sync_manager/data_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl DataCache {

/// Remove timeout data entries according to TTL.
pub fn garbage_collect(&mut self, latest_tx_seq: u64) {
// We won't keep too many data, so it's okay to just iterate here.
// We won't keep too much data, so it's okay to just iterate here.
self.root_to_data.retain(|_, cached| {
cached.last_seen_tx_seq + self.config.tx_seq_ttl as u64 >= latest_tx_seq
})
Expand Down
2 changes: 1 addition & 1 deletion node/log_entry_sync/src/sync_manager/log_entry_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ async fn check_watch_process(
}
} else {
warn!(
"get block hash for block {} from RPC, assume there is no org",
"get block hash for block {} from RPC, assume there is no reorg",
*progress - 1
);
let hash = loop {
Expand Down
2 changes: 1 addition & 1 deletion node/network/src/rpc/codec/ssz_snappy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Encoder<RPCCodedResponse> for SSZSnappyInboundCodec {
}

// Inserts the length prefix of the uncompressed bytes into dst
// encoded as a unsigned varint
// encoded as an unsigned varint
self.inner
.encode(bytes.len(), dst)
.map_err(RPCError::from)?;
Expand Down