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

fixed typos #226

Merged
merged 2 commits into from
Mar 28, 2022
Merged
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 book/src/advanced/intersect_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Advanced options for instructing Oura from which point in the chain to start rea

## Feature

When running in daemon mode, Oura provides 4 different strategies for finding the instersection point within the chain sync process.
When running in daemon mode, Oura provides 4 different strategies for finding the intersection point within the chain sync process.

- `Origin`: Oura will start reading from the begining of the chain.
- `Origin`: Oura will start reading from the beginning of the chain.
- `Tip`: Oura will start reading from the current tip of the chain.
- `Point`: Oura will start reading from a particular point (slot, hash) in the chain. If the point is not found, the process will be terminated with a non-zero exit code.
- `Fallbacks`: Oura will start reading the first valid point within a set of alternative positions. If point is not valid, the process will fallback into the next available point in the list of options. If none of the points are valid, the process will be terminated with a non-zero exit code.
Expand Down
2 changes: 1 addition & 1 deletion src/sinks/aws_lambda/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn writer_loop(
let result = rt.block_on(invoke_lambda_function(client, function_name, &event));

if let Err(err) = result {
log::error!("unrecoverable error invoking lambda funcion: {:?}", err);
log::error!("unrecoverable error invoking lambda function: {:?}", err);
return Err(err);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/sources/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ pub(crate) fn define_start_point(
Ok(Some(points?))
}
Some(IntersectArg::Origin) => {
log::info!("found 'origin' instersect argument, will use as starting point");
log::info!("found 'origin' intersect argument, will use as starting point");

Ok(None)
}
Expand Down
4 changes: 2 additions & 2 deletions src/sources/n2c/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ impl TryFrom<BlockContent> for MultiEraBlock {
Ok(MultiEraBlock::Byron(Box::new(block)))
}
probing::Outcome::Inconclusive => {
log::error!("CBOR hex for debubbing: {}", hex::encode(bytes));
Err("can't infer primitive block from cbor, inconslusive probing".into())
log::error!("CBOR hex for debugging: {}", hex::encode(bytes));
Err("can't infer primitive block from cbor, inconclusive probing".into())
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/sources/n2n/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl blockfetch::Observer for Block2EventMapper {
.ok_or_warn("error crawling block for events");
}
probing::Outcome::Inconclusive => {
log::error!("can't infer primitive block from cbor, inconslusive probing. CBOR hex for debubbing: {}", hex::encode(body));
log::error!("can't infer primitive block from cbor, inconclusive probing. CBOR hex for debugging: {}", hex::encode(body));
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This module includes general-purpose utilities that could potentially be
//! used by more than a single stage. The entry point to this utilities is
//! desgined as singelton [`Utils`] instance shared by all stages through an Arc
//! designed as singleton [`Utils`] instance shared by all stages through an Arc
//! pointer.

use std::sync::Arc;
Expand Down Expand Up @@ -164,9 +164,9 @@ impl Utils {
/// Wraps a struct with pipeline-wide utilities
///
/// Most of the stage bootstrapping processes will require a custom config value
/// and a reference to the shared utilities singelton. This is a quality-of-life
/// and a reference to the shared utilities singleton. This is a quality-of-life
/// artifact to wrap other structs (usually configs) and attach the utilities
/// singelton entrypoint.
/// singleton entrypoint.
pub struct WithUtils<C> {
pub utils: Arc<Utils>,
pub inner: C,
Expand Down