pageserver - use constant TIMELINE_ID for tests

This commit is contained in:
Patrick Insinger
2021-10-01 12:38:19 -07:00
committed by Patrick Insinger
parent 4256231eb7
commit 664b99b5ac
4 changed files with 32 additions and 28 deletions

View File

@@ -78,6 +78,10 @@ macro_rules! zid_newtype {
pub fn generate() -> Self {
$t(ZId::generate())
}
pub const fn from_array(b: [u8; 16]) -> Self {
$t(ZId(b))
}
}
impl FromStr for $t {