diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-03-25 18:44:21 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-03-25 23:14:16 -0400 |
commit | 5eab3c4b33f2b0b594993a095eae86f88828827d (patch) | |
tree | a2ce6133546bd03a56ad2ae65f1ad0478ab8ee91 /src/bin/rbw/commands.rs | |
parent | b659cc500476a7b4b94bc6659d46922be9465b99 (diff) | |
download | rbw-5eab3c4b33f2b0b594993a095eae86f88828827d.tar.gz rbw-5eab3c4b33f2b0b594993a095eae86f88828827d.zip |
sync the db every hour, like other bitwarden clients
Diffstat (limited to 'src/bin/rbw/commands.rs')
-rw-r--r-- | src/bin/rbw/commands.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index 668cb89..5d51f70 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -639,6 +639,12 @@ pub fn config_set(key: &str, value: &str) -> anyhow::Result<()> { config.lock_timeout = timeout; } } + "sync_interval" => { + let interval = value + .parse() + .context("failed to parse value for sync_interval")?; + config.sync_interval = interval; + } "pinentry" => config.pinentry = value.to_string(), _ => return Err(anyhow::anyhow!("invalid config key: {}", key)), } |