diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2025-12-18 23:11:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-18 23:11:47 -0500 |
| commit | 39ef6e79d71ea0a02022d263b9670eb474d621f4 (patch) | |
| tree | d256493c051e3d9ed9758499a344e01e10638ba8 /crates/atuin-server/src/settings.rs | |
| parent | feat: add support for read replicas to postgres (#3029) (diff) | |
| download | atuin-39ef6e79d71ea0a02022d263b9670eb474d621f4.zip | |
feat: allow disabling sync v1 (#3030)
It takes up a very large amount of our query time, despite having been
replaced for >1yr now. We will be dropping support for it on atuin hub
Diffstat (limited to 'crates/atuin-server/src/settings.rs')
| -rw-r--r-- | crates/atuin-server/src/settings.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/atuin-server/src/settings.rs b/crates/atuin-server/src/settings.rs index 7221d4dd..2c02bcbe 100644 --- a/crates/atuin-server/src/settings.rs +++ b/crates/atuin-server/src/settings.rs @@ -68,6 +68,10 @@ pub struct Settings { pub tls: Tls, pub mail: Mail, + /// Enable legacy sync v1 routes (history-based sync) + /// Set to false to use only the newer record-based sync + pub sync_v1_enabled: bool, + /// Advertise a version that is not what we are _actually_ running /// Many clients compare their version with api.atuin.sh, and if they differ, notify the user /// that an update is available. @@ -109,6 +113,7 @@ impl Settings { .set_default("tls.enable", false)? .set_default("tls.cert_path", "")? .set_default("tls.pkey_path", "")? + .set_default("sync_v1_enabled", true)? .add_source( Environment::with_prefix("atuin") .prefix_separator("_") |
