mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 05:50:38 +00:00
clippy
This commit is contained in:
@@ -184,7 +184,7 @@ impl DeletionQueueClient {
|
||||
tenant_id,
|
||||
timeline_id,
|
||||
layers: Vec::new(),
|
||||
objects: objects,
|
||||
objects,
|
||||
}))
|
||||
.await;
|
||||
}
|
||||
@@ -245,7 +245,7 @@ impl BackendQueueWorker {
|
||||
DELETION_QUEUE_ERRORS
|
||||
.with_label_values(&["failpoint"])
|
||||
.inc();
|
||||
return false;
|
||||
false
|
||||
});
|
||||
|
||||
if self.accumulator.is_empty() {
|
||||
@@ -478,7 +478,7 @@ impl FrontendQueueWorker {
|
||||
return;
|
||||
}
|
||||
|
||||
match self.remote_storage.upload(source, size, &key, None).await {
|
||||
match self.remote_storage.upload(source, size, key, None).await {
|
||||
Ok(_) => {
|
||||
info!(
|
||||
"Stored deletion list {key} ({0}..{1})",
|
||||
|
||||
@@ -1138,7 +1138,7 @@ async fn deletion_queue_flush_execute(
|
||||
) -> Result<Response<Body>, ApiError> {
|
||||
let state = get_state(&r);
|
||||
|
||||
if let None = state.remote_storage {
|
||||
if state.remote_storage.is_none() {
|
||||
// Nothing to do if remote storage is disabled.
|
||||
return json_response(StatusCode::OK, ());
|
||||
}
|
||||
|
||||
@@ -1266,7 +1266,7 @@ impl Timeline {
|
||||
async fn delete_all_remote(&self) -> anyhow::Result<()> {
|
||||
if let Some(remote_client) = &self.remote_client {
|
||||
if let Some(deletion_queue_client) = &self.deletion_queue_client {
|
||||
remote_client.delete_all(&deletion_queue_client).await
|
||||
remote_client.delete_all(deletion_queue_client).await
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user