mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-04-27 23:05:12 +00:00
remove unnecessary pubs
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
+3
-3
@@ -1012,7 +1012,7 @@ pub fn flush(&self) -> Result<()> {
|
||||
}
|
||||
|
||||
#[tracing::instrument]
|
||||
pub fn start_check_for_updates_task() {
|
||||
fn start_check_for_updates_task() {
|
||||
tokio::spawn(async move {
|
||||
let timer_interval = Duration::from_secs(60 * 60);
|
||||
let mut i = interval(timer_interval);
|
||||
@@ -1060,7 +1060,7 @@ struct CheckForUpdatesResponse {
|
||||
}
|
||||
|
||||
#[tracing::instrument]
|
||||
pub async fn start_cleanup_task() {
|
||||
async fn start_cleanup_task() {
|
||||
#[cfg(unix)]
|
||||
use tokio::signal::unix::{signal, SignalKind};
|
||||
use tokio::time::Instant;
|
||||
@@ -1111,7 +1111,7 @@ fn perform_cleanup() {
|
||||
});
|
||||
}
|
||||
|
||||
pub async fn start_presence_handler(presence_timer_receiver: mpsc::UnboundedReceiver<(OwnedUserId, Duration)>) {
|
||||
async fn start_presence_handler(presence_timer_receiver: mpsc::UnboundedReceiver<(OwnedUserId, Duration)>) {
|
||||
tokio::spawn(async move {
|
||||
match presence_handler(presence_timer_receiver).await {
|
||||
Ok(()) => warn!("Presence maintenance task finished"),
|
||||
|
||||
Reference in New Issue
Block a user