refactor(project): cleaned up with clippy
This commit is contained in:
parent
cd43fd6041
commit
4af2255d2f
3 changed files with 2 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ impl Args {
|
||||||
name,
|
name,
|
||||||
}) => {
|
}) => {
|
||||||
println!("Receive for {name:?}");
|
println!("Receive for {name:?}");
|
||||||
receiver::start_receiver(
|
let _ = receiver::start_receiver(
|
||||||
".".to_string(),
|
".".to_string(),
|
||||||
relay.as_deref().unwrap_or(&cfg.app_origin),
|
relay.as_deref().unwrap_or(&cfg.app_origin),
|
||||||
name,
|
name,
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ pub async fn start_receiver(filepath: String, relay: &str, name: &str) -> Result
|
||||||
if let Err(relay_err) = start_ws_com(filepath, relay, res.relay_room_id.as_str()).await {
|
if let Err(relay_err) = start_ws_com(filepath, relay, res.relay_room_id.as_str()).await {
|
||||||
debug!("Failed to connect remote: {relay_err}");
|
debug!("Failed to connect remote: {relay_err}");
|
||||||
}
|
}
|
||||||
let _success = http_client::download_success(http_url.as_str(), name)
|
http_client::download_success(http_url.as_str(), name)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| anyhow!("Failed to download success: {}", e))?;
|
.map_err(|e| anyhow!("Failed to download success: {}", e))?;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ use std::{
|
||||||
path::Path,
|
path::Path,
|
||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
// use tokio::sync::mpsc;
|
|
||||||
use tokio::sync::mpsc;
|
|
||||||
use tokio::{io::AsyncReadExt, task::JoinHandle, time::sleep};
|
use tokio::{io::AsyncReadExt, task::JoinHandle, time::sleep};
|
||||||
use tokio_tungstenite::tungstenite::{protocol::Message as WebSocketMessage, Error};
|
use tokio_tungstenite::tungstenite::{protocol::Message as WebSocketMessage, Error};
|
||||||
use tracing::{debug, error};
|
use tracing::{debug, error};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue