use NodeMetadata struct for writing metadata.json from neon_local

This commit is contained in:
Christian Schwarz
2024-05-03 12:33:56 +00:00
parent d2e2a88737
commit 498edfc0ff
2 changed files with 8 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ pub const DEFAULT_HTTP_LISTEN_ADDR: &str = formatcp!("127.0.0.1:{DEFAULT_HTTP_LI
// itself, it is only used for registering the pageserver with the control
// plane and/or storage controller.
//
#[derive(serde::Deserialize)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct NodeMetadata {
#[serde(rename = "host")]
pub postgres_host: String,