Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Stanton <ian@coredb.io>
  • Loading branch information
ianstanton committed Sep 14, 2024
1 parent a11d32d commit f1b6d46
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ mockito = { version = "1.1.1", default-features = false }

[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is a URL
default = ["custom-protocol"]
# this feature is used used for production builds where `devPath` points to the filesystem
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = ["tauri/custom-protocol"]
2 changes: 1 addition & 1 deletion src-tauri/src/install_zip/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ use self::payloads::{FromRustPayload, FromTSPayload, PathStatus, ZipInstallProgr

pub async fn start_zip_task(window: Window) -> () {
info!("Zip Task Started");
// Just incase it's a timing issue with the install failing thing
// Just in case it's a timing issue with the install failing thing
tokio::time::sleep(Duration::from_millis(200)).await;
let state: tauri::State<PocketSyncState> = window.state();
let (zip_start_tx, mut zip_start_rx) = tokio::sync::mpsc::channel(32);
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/required_files/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl DataSlotFile {
&& (self.name.contains("bios")
|| self.name.contains("beta.bin")
|| self.required
// Setthing this to `true` has it try to download all files
// Setting this to `true` has it try to download all files
// even if they're not marked as required
// can't find why that made sense
|| false)
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/save_sync_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub async fn start_mister_save_sync_session(
window.emit("mister-save-sync-platform-list", platform_list).unwrap();
},
Ok(OutboundMessage::FoundSave(mister_save_info)) => {
println!("Emmiting save");
println!("Emitting save");
window.emit("mister-save-sync-found-save", mister_save_info).unwrap();
},
Ok(OutboundMessage::MovedSave(transfer)) => {
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/turbo_downloads/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub async fn turbo_download_file(url: &str) -> Result<Bytes> {
let file_bytes = tokio::task::spawn_blocking(move || {
let file_bytes: Vec<_> = ranges
.par_iter()
.map(|(start, end)| dowload_retry_on_timeout(url.clone(), *start, *end).unwrap())
.map(|(start, end)| download_retry_on_timeout(url.clone(), *start, *end).unwrap())
.collect();

file_bytes.concat()
Expand All @@ -50,7 +50,7 @@ pub async fn turbo_download_file(url: &str) -> Result<Bytes> {
Ok(file_bytes.into())
}

fn dowload_retry_on_timeout(url: Url, start: u64, end: u64) -> Result<Bytes> {
fn download_retry_on_timeout(url: Url, start: u64, end: u64) -> Result<Bytes> {
let client = reqwest::blocking::Client::new();
let mut retry_count = 0;
loop {
Expand Down

0 comments on commit f1b6d46

Please sign in to comment.