Rust Version, Linting & CI Fix
This commit is contained in:
parent
6ab4ae7244
commit
cf36c8205b
6 changed files with 7 additions and 11 deletions
src
|
@ -5,7 +5,7 @@ extern crate dotenv;
|
|||
use dotenv::dotenv;
|
||||
use tokio::time::sleep;
|
||||
|
||||
use std::{env, error::Error, fs, net::Ipv4Addr, net::Ipv6Addr, thread, time::Duration, sync::{Mutex, Arc, atomic::{AtomicBool, Ordering}}};
|
||||
use std::{env, fs, net::Ipv4Addr, net::Ipv6Addr, time::Duration, sync::{Arc, atomic::{AtomicBool, Ordering}}};
|
||||
|
||||
use chrono::Local;
|
||||
|
||||
|
@ -266,7 +266,7 @@ async fn main() -> Result<()> {
|
|||
|
||||
while is_alive.load(Ordering::Relaxed) {
|
||||
let thread = tokio::spawn(async {
|
||||
sleep(Duration::from_millis(100));
|
||||
let _ = sleep(Duration::from_millis(100));
|
||||
});
|
||||
|
||||
let _ = thread.await;
|
||||
|
|
Reference in a new issue