Skip to content

Commit

Permalink
review up
Browse files Browse the repository at this point in the history
  • Loading branch information
filipslezaklab committed Nov 18, 2024
1 parent 4e11935 commit f9618d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src-tauri/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1250,12 +1250,12 @@ pub async fn verify_connection(app_handle: AppHandle, connection: ConnectionToVe
.await
.clone()
.iter()
.find(|x| {
x.location_id == *&location.id && x.connection_type == ConnectionType::Location
.find(|&x| {
x.location_id == location.id && x.connection_type == ConnectionType::Location
}) {
Some(active_connection) => {
debug!("Verifying connection to location {location}");
trace!("Verifying connection {:?}", active_connection);
trace!("Verifying connection {active_connection:?}");
let payload = DeadConnDroppedOut {
con_type: ConnectionType::Location,
id: location.id,
Expand Down Expand Up @@ -1328,8 +1328,8 @@ pub async fn verify_connection(app_handle: AppHandle, connection: ConnectionToVe
.await
.clone()
.iter()
.find(|x| {
x.location_id == *&tunnel.id && x.connection_type == ConnectionType::Tunnel
.find(|&x| {
x.location_id == tunnel.id && x.connection_type == ConnectionType::Tunnel
}) {
Some(active_connection) => {
trace!("Verifying connection {:?}", active_connection);
Expand Down

0 comments on commit f9618d0

Please sign in to comment.