cleanup: persist_index_part_with_deleted_flag doesn't need self: &Arc<Self>

This commit is contained in:
Christian Schwarz
2023-04-27 11:52:13 +02:00
parent b69d12d50b
commit 95b560db4e

View File

@@ -629,9 +629,7 @@ impl RemoteTimelineClient {
}
// NOTE: if there were no tasks to call stop we need to call stop by ourselves first
pub(crate) async fn persist_index_part_with_deleted_flag(
self: &Arc<Self>,
) -> anyhow::Result<()> {
pub(crate) async fn persist_index_part_with_deleted_flag(&self) -> anyhow::Result<()> {
let index_part = {
let mut locked = self.upload_queue.lock().unwrap();