Skip to content

Commit

Permalink
fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Dec 13, 2024
1 parent cd13afe commit 6ba1cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions liveion/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tokio::net::TcpListener;
use tower_http::{
cors::CorsLayer, trace::TraceLayer, validate_request::ValidateRequestHeaderLayer,
};
use tracing::{error, info_span, warn, Level};
use tracing::{error, info_span, Level};

use auth::{access::access_middleware, ManyValidate};
use error::AppError;
Expand Down Expand Up @@ -110,7 +110,7 @@ where
)
.await
{
Ok(_) => warn!("net4mqtt service is end, restart net4mqtt service"),
Ok(_) => tracing::warn!("net4mqtt service is end, restart net4mqtt service"),
Err(e) => error!("mqtt4mqtt error: {:?}", e),
}
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
Expand Down
4 changes: 2 additions & 2 deletions liveman/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tokio::net::TcpListener;
use tower_http::{
cors::CorsLayer, trace::TraceLayer, validate_request::ValidateRequestHeaderLayer,
};
use tracing::{error, info, info_span, warn};
use tracing::{error, info, info_span};

use crate::admin::{authorize, token};
use crate::config::Config;
Expand Down Expand Up @@ -97,7 +97,7 @@ where
)
.await
{
Ok(_) => warn!("net4mqtt service is end, restart net4mqtt service"),
Ok(_) => tracing::warn!("net4mqtt service is end, restart net4mqtt service"),
Err(e) => error!("mqtt4mqtt error: {:?}", e),
}
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
Expand Down

0 comments on commit 6ba1cb2

Please sign in to comment.