Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Sep 12, 2024
1 parent b7cd8bf commit 8914a0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ pub async fn do_update_instance(
instance.disable_all_traffic = instance_info.disable_all_traffic;
instance.enterprise_enabled = instance_info.enterprise_enabled;
instance.save(transaction.as_mut()).await?;
info!(
"Instance {}({}) main config updated.",
instance.name, instance.id
);

// check if locations have changed
if locations_changed {
Expand Down Expand Up @@ -509,12 +513,15 @@ pub async fn do_update_instance(
instance.name, instance.id
);
} else {
debug!(
info!(
"Locations for instance {}({}) didn't change. Not updating them.",
instance.name, instance.id
);
}
info!("Instance {}({}) updated", instance.name, instance.id);
info!(
"Instance {}({}) update is done.",
instance.name, instance.id
);
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/periodic/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{collections::HashSet, str::FromStr, time::Duration};
use std::{str::FromStr, time::Duration};

use reqwest::StatusCode;
use sqlx::{Sqlite, Transaction};
Expand Down

0 comments on commit 8914a0f

Please sign in to comment.