diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-06-17 08:44:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 08:44:25 +0100 |
commit | 0a6bfbba3ea1d44220115779b232a8d7d2e823c9 (patch) | |
tree | 5c0ecd76ad0466866d0f455abaf720299d08e87e | |
parent | 55840bddf5caec1137380f70ef9c9b556fd483e6 (diff) |
fix: unitless sync_frequence = 0 not parsed by humantime (#2154)
Resolve #2147
-rw-r--r-- | crates/atuin-client/src/settings.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index 0f1b443a9..c0ead292f 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -553,6 +553,10 @@ impl Settings { return Ok(false); } + if self.sync_frequency == "0" { + return Ok(true); + } + match parse_duration(self.sync_frequency.as_str()) { Ok(d) => { let d = time::Duration::try_from(d).unwrap(); |