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: fix typos #219

Open
wants to merge 1 commit 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
4 changes: 2 additions & 2 deletions crates/freeze/src/types/chunks/binary_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ impl ChunkData for BinaryChunk {

fn format_item(value: Self::Inner) -> Result<String, ChunkError> {
let hash = prefix_hex::encode(value);
let eigth = match hash.char_indices().nth(8) {
let eight = match hash.char_indices().nth(8) {
Some(x) => x,
None => return Err(ChunkError::ChunkError("could not format chunk".to_string())),
};
let start = &hash[..eigth.0];
let start = &hash[..eight.0];
Ok(start.to_string())
}

Expand Down
2 changes: 1 addition & 1 deletion crates/freeze/src/types/partitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ macro_rules! parametrize {
for output in $outputs.into_iter() {
let chunks = $self_chunks
.as_ref()
.ok_or(CollectError::CollectError("mising block ranges".to_string()))?;
.ok_or(CollectError::CollectError("missing block ranges".to_string()))?;

for chunk in chunks.iter() {
for value in chunk.values().iter() {
Expand Down
2 changes: 1 addition & 1 deletion crates/freeze/src/types/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ impl Source {
},
TraceResult::Error { error, tx_hash } => {
return Err(CollectError::CollectError(format!(
"inalid trace result in tx {:?}: {}",
"invalid trace result in tx {:?}: {}",
tx_hash, error
)));
}
Expand Down