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

chore(typos): fix typos #682

Merged
merged 5 commits into from
Mar 6, 2023
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ To run the unit tests for a specific crate, from the root of the repository run:
cargo test --package <crate-name> --all-features --lib -- --nocapture
```

To run the integration tests for a spesific crate (if it has any), from the root of the repository run:
To run the integration tests for a specific crate (if it has any), from the root of the repository run:

```bash
# replace <crate-name> with the name of the crate to test, e.g. `cargo-shuttle`
Expand Down
2 changes: 1 addition & 1 deletion common/src/backends/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl Claim {
}
}

/// Trait to get a public key asyncronously
/// Trait to get a public key asynchronously
#[async_trait]
pub trait PublicKeyFn: Send + Sync + Clone {
type Error: std::error::Error + Send;
Expand Down
4 changes: 2 additions & 2 deletions common/src/models/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl From<StatusCode> for ApiError {
fn from(code: StatusCode) -> Self {
let message = match code {
StatusCode::OK | StatusCode::ACCEPTED | StatusCode::FOUND | StatusCode::SWITCHING_PROTOCOLS => {
unreachable!("we should not have an API error with a successfull status code")
unreachable!("we should not have an API error with a successful status code")
}
StatusCode::FORBIDDEN => "this request is not allowed",
StatusCode::UNAUTHORIZED => {
Expand All @@ -137,7 +137,7 @@ impl From<StatusCode> for ApiError {
},
_ => {
error!(%code, "got an unexpected status code");
"an unexpected error occured. Please create a ticket to report this"
"an unexpected error occurred. Please create a ticket to report this"
},
};

Expand Down
2 changes: 1 addition & 1 deletion common/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl ToJson for reqwest::Response {
status_code,
StatusCode::OK | StatusCode::SWITCHING_PROTOCOLS
) {
serde_json::from_slice(&full).context("failed to parse a successfull response")
serde_json::from_slice(&full).context("failed to parse a successful response")
} else {
trace!("parsing response to common error");
let res: error::ApiError = match serde_json::from_slice(&full) {
Expand Down
4 changes: 2 additions & 2 deletions deployer/src/deployment/deploy_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ mod tests {

select! {
_ = sleep(Duration::from_secs(180)) => {
panic!("states should go into 'Crashed' panicing in bind");
panic!("states should go into 'Crashed' panicking in bind");
}
_ = test => {}
}
Expand Down Expand Up @@ -875,7 +875,7 @@ mod tests {

select! {
_ = sleep(Duration::from_secs(180)) => {
panic!("states should go into 'Crashed' when panicing in main");
panic!("states should go into 'Crashed' when panicking in main");
}
_ = test => {}
}
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ where
// Stopping a docker containers sends a SIGTERM which will stop the tokio runtime that deployer starts up.
// Killing this runtime causes the deployment to enter the `completed` state and it therefore does not
// start up again when starting up the project's container. Luckily the kill command allows us to change the
// signal to prevent this from happenning.
// signal to prevent this from happening.
//
// In some future state when all deployers hadle `SIGTERM` correctly, this can be changed to docker stop
// safely.
Expand Down