From 8ace7a7515bab697aec906d469d2a663315a1740 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 12 Apr 2023 01:57:43 +0300 Subject: [PATCH] Remove unused 'timestamp' field from ComputeSpec struct. --- libs/compute_api/src/spec.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/compute_api/src/spec.rs b/libs/compute_api/src/spec.rs index 37fe133b68..f771910329 100644 --- a/libs/compute_api/src/spec.rs +++ b/libs/compute_api/src/spec.rs @@ -15,7 +15,10 @@ pub type PgIdent = String; #[derive(Clone, Debug, Default, Deserialize)] pub struct ComputeSpec { pub format_version: f32, - pub timestamp: String, + + // The control plane also includes a 'timestamp' field in the JSON document, + // but we don't use it for anything. Serde will ignore missing fields when + // deserializing it. pub operation_uuid: Option, /// Expected cluster state at the end of transition process. pub cluster: Cluster,