mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-08-01 12:48:31 +00:00
actually fix all let_underscore_must_use lints
CI caught some more Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
0877ee6191
commit
6269822613
8 changed files with 54 additions and 21 deletions
|
@ -10,7 +10,7 @@ use tokio::{
|
|||
fs,
|
||||
sync::{broadcast, Mutex, RwLock},
|
||||
};
|
||||
use tracing::{debug, info, trace};
|
||||
use tracing::{debug, info, trace, warn};
|
||||
|
||||
use crate::{
|
||||
account_data, admin, appservice, globals, key_backups, media, presence, pusher, rooms, sending, transaction_ids,
|
||||
|
@ -293,7 +293,11 @@ bad_signature_ratelimiter: {bad_signature_ratelimiter}
|
|||
|
||||
if self.globals.allow_check_for_updates() {
|
||||
let handle = globals::updates::start_check_for_updates_task().await?;
|
||||
_ = self.globals.updates_handle.lock().await.insert(handle);
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)] // needed for shutdown
|
||||
{
|
||||
_ = self.globals.updates_handle.lock().await.insert(handle);
|
||||
}
|
||||
}
|
||||
|
||||
debug_info!("Services startup complete.");
|
||||
|
@ -319,13 +323,19 @@ bad_signature_ratelimiter: {bad_signature_ratelimiter}
|
|||
|
||||
debug!("Removing unix socket file.");
|
||||
if let Some(path) = self.globals.unix_socket_path().as_ref() {
|
||||
_ = fs::remove_file(path).await;
|
||||
if let Err(e) = fs::remove_file(path).await {
|
||||
warn!("Failed to remove UNIX socket file: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
debug!("Waiting for update worker...");
|
||||
if let Some(updates_handle) = self.globals.updates_handle.lock().await.take() {
|
||||
updates_handle.abort();
|
||||
_ = updates_handle.await;
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
{
|
||||
_ = updates_handle.await;
|
||||
}
|
||||
}
|
||||
|
||||
debug!("Waiting for admin worker...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue