Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ctring committed Nov 5, 2023
1 parent 94fa622 commit 1289c07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pageserver/src/tenant/timeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ impl Timeline {
}

async fn put_values(&self, values: Vec<(Key, Lsn, Value)>) -> anyhow::Result<()> {
if let Some((_, lsn, _)) = values.iter().next() {
if let Some((_, lsn, _)) = values.first() {
let layer = self.get_layer_for_write(*lsn).await?;
layer.put_values(values).await?;
}
Expand All @@ -2683,7 +2683,7 @@ impl Timeline {
}

async fn put_tombstones(&self, tombstones: Vec<(Range<Key>, Lsn)>) -> anyhow::Result<()> {
if let Some((_, lsn)) = tombstones.iter().next() {
if let Some((_, lsn)) = tombstones.first() {
let layer = self.get_layer_for_write(*lsn).await?;
layer.put_tombstones(tombstones).await?;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ impl From<WalDecodeError> for WalReceiverError {

/// Open a connection to the given safekeeper and receive WAL, sending back progress
/// messages as we go.
#[allow(clippy::too_many_arguments)]
pub(super) async fn handle_walreceiver_connection(
timeline: Arc<Timeline>,
wal_source_connconf: PgConnectionConfig,
Expand Down

0 comments on commit 1289c07

Please sign in to comment.