pagserver: cargo fmt

This commit is contained in:
Vlad Lazar
2024-04-18 15:55:17 +01:00
parent d2c806fa40
commit 76abb4e7a4
2 changed files with 7 additions and 3 deletions

View File

@@ -3861,8 +3861,8 @@ mod tests {
use pageserver_api::key::NON_INHERITED_RANGE;
use pageserver_api::keyspace::KeySpace;
use rand::{thread_rng, Rng};
use tests::timeline::{GetVectoredError, ShutdownMode};
use tests::storage_layer::ValuesReconstructState;
use tests::timeline::{GetVectoredError, ShutdownMode};
static TEST_KEY: Lazy<Key> =
Lazy::new(|| Key::from_slice(&hex!("010000000033333333444444445500000001")));

View File

@@ -977,7 +977,7 @@ impl Timeline {
// The intent here is to achieve error parity with the vectored read path.
// When vectored read fails to load a layer it fails the whole read, hence
// we mimic this behaviour here to keep the validation happy.
return Err(GetVectoredError::Other(err))
return Err(GetVectoredError::Other(err));
}
_ => {
values.insert(key, block);
@@ -3182,7 +3182,11 @@ impl Timeline {
None => {
for range in unmapped_keyspace.ranges.iter() {
let results = layers.range_search(range.clone(), cont_lsn);
tracing::info!("Range search at {} found {:?}", cont_lsn, results.found);
tracing::info!(
"Range search at {} found {:?}",
cont_lsn,
results.found
);
results
.found