feat: 利用 etag 节省内容传输,显式写明生命周期 (#464)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-09-24 02:03:06 +08:00
committed by GitHub
parent 210c94398a
commit bbbb7d0c5b
4 changed files with 48 additions and 31 deletions

View File

@@ -42,7 +42,7 @@ impl TaskStatusNotifier {
}
}
pub async fn start_running(&self) -> MutexGuard<()> {
pub async fn start_running(&'_ self) -> MutexGuard<'_, ()> {
let lock = self.mutex.lock().await;
let _ = self.tx.send(Arc::new(TaskStatus {
is_running: true,