From d2240e1163a62f96dfb1cb99c38ffa2390d53c33 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sun, 21 May 2023 16:21:51 +0100 Subject: Allow server configured page size (#994) * Allow server configured page size * Backwards compat via semver checks * Correct header name --- atuin-common/src/api.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'atuin-common/src/api.rs') diff --git a/atuin-common/src/api.rs b/atuin-common/src/api.rs index 2eff464e..025464d4 100644 --- a/atuin-common/src/api.rs +++ b/atuin-common/src/api.rs @@ -74,6 +74,12 @@ pub struct StatusResponse { pub count: i64, pub username: String, pub deleted: Vec, + + // These could/should also go on the index of the server + // However, we do not request the server index as a part of normal sync + // I'd rather slightly increase the size of this response, than add an extra HTTP request + pub page_size: i64, // max page size supported by the server + pub version: String, } #[derive(Debug, Serialize, Deserialize)] -- cgit v1.3.1