Make clippy happy

This commit is contained in:
Konstantin Knizhnik
2024-06-26 22:10:06 +03:00
parent 6c0e44be4c
commit dfed7029e1
2 changed files with 5 additions and 2 deletions

View File

@@ -640,7 +640,7 @@ async fn import_file(
{
let bytes = read_all_bytes(reader).await?;
modification
.put_file(&file_path.to_str().unwrap(), &bytes, ctx)
.put_file(file_path.to_str().unwrap(), &bytes, ctx)
.await?;
debug!("imported aux file \"{}\"", file_path.display());
} else {

View File

@@ -1,11 +1,14 @@
import pytest
from fixtures.neon_fixtures import NeonEnv
from fixtures.neon_fixtures import AuxFileStore, NeonEnv
from fixtures.pg_version import PgVersion
#
# Test that pgstat statistic is preserved across sessions
#
@pytest.mark.parametrize(
"pageserver_aux_file_policy", [AuxFileStore.V1, AuxFileStore.V2, AuxFileStore.CrossValidation]
)
def test_pgstat(neon_simple_env: NeonEnv):
env = neon_simple_env
if env.pg_version == PgVersion.V14: