Closed jcsp closed 5 months ago
Since https://github.com/neondatabase/neon/pull/7131 we have two places that use a helper (ser_rfc3339_millis) to get serde to string-ize SystemTimes into the format we want.
ser_rfc3339_millis
It would be nice to just have a Serialize implementation so that we don't have to decorate structs.
Hi, I'd like to contribute to this!
Thanks, feel free to open a PR
Hi @jcsp, it seems like there's one other place that uses a helper to serialize/deserialize SystemTime <-> RFC3339. Should we change this too?
https://github.com/neondatabase/neon/blob/94138c1a28e998b6e0d70f3b72dc170b2af34ca6/libs/utils/src/pageserver_feedback.rs#L30-L31
https://github.com/neondatabase/neon/blob/94138c1a28e998b6e0d70f3b72dc170b2af34ca6/libs/utils/src/pageserver_feedback.rs#L164-L187
Since https://github.com/neondatabase/neon/pull/7131 we have two places that use a helper (
ser_rfc3339_millis
) to get serde to string-ize SystemTimes into the format we want.It would be nice to just have a Serialize implementation so that we don't have to decorate structs.