diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-11 04:37:17 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-11 04:39:34 -0400 |
commit | 763789f029b3be8e32efc49e9a94f61bf139ec3e (patch) | |
tree | 9fa1d38d0005f26367ce138e86f24cc166e7b269 /src/config.rs | |
parent | c38b48749cd33d02349cd950149d4413c8469cb4 (diff) | |
download | rbw-763789f029b3be8e32efc49e9a94f61bf139ec3e.tar.gz rbw-763789f029b3be8e32efc49e9a94f61bf139ec3e.zip |
read lock timeout from config
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index d02bc11..0e79893 100644 --- a/src/config.rs +++ b/src/config.rs @@ -8,6 +8,12 @@ pub struct Config { pub email: Option<String>, pub base_url: Option<String>, pub identity_url: Option<String>, + #[serde(default = "default_lock_timeout")] + pub lock_timeout: u64, +} + +fn default_lock_timeout() -> u64 { + 3600 } impl Config { |