Skip to content

Commit

Permalink
use ::default() in all the places
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Jul 1, 2024
1 parent 740344e commit ad004b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pageserver/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ impl PageServerConfigBuilder {
)),
validate_vectored_get: Set(DEFAULT_VALIDATE_VECTORED_GET),
ephemeral_bytes_per_memory_kb: Set(DEFAULT_EPHEMERAL_BYTES_PER_MEMORY_KB),
l0_flush: Set(L0FlushConfig::PageCached),
l0_flush: Set(L0FlushConfig::default()),
}
}
}
Expand Down Expand Up @@ -1103,7 +1103,7 @@ impl PageServerConf {
),
validate_vectored_get: defaults::DEFAULT_VALIDATE_VECTORED_GET,
ephemeral_bytes_per_memory_kb: defaults::DEFAULT_EPHEMERAL_BYTES_PER_MEMORY_KB,
l0_flush: L0FlushConfig::PageCached,
l0_flush: L0FlushConfig::default(),
}
}
}
Expand Down Expand Up @@ -1343,7 +1343,7 @@ background_task_maximum_delay = '334 s'
),
validate_vectored_get: defaults::DEFAULT_VALIDATE_VECTORED_GET,
ephemeral_bytes_per_memory_kb: defaults::DEFAULT_EPHEMERAL_BYTES_PER_MEMORY_KB,
l0_flush: L0FlushConfig::PageCached,
l0_flush: L0FlushConfig::default(),
},
"Correct defaults should be used when no config values are provided"
);
Expand Down Expand Up @@ -1417,7 +1417,7 @@ background_task_maximum_delay = '334 s'
),
validate_vectored_get: defaults::DEFAULT_VALIDATE_VECTORED_GET,
ephemeral_bytes_per_memory_kb: defaults::DEFAULT_EPHEMERAL_BYTES_PER_MEMORY_KB,
l0_flush: L0FlushConfig::PageCached,
l0_flush: L0FlushConfig::default(),
},
"Should be able to parse all basic config values correctly"
);
Expand Down

0 comments on commit ad004b7

Please sign in to comment.