(s: &str)
| 115 | } |
| 116 | |
| 117 | fn parse_positive_duration(s: &str) -> Result<Duration, String> { |
| 118 | let d = humantime::parse_duration(s).map_err(|e| e.to_string())?; |
| 119 | if d.is_zero() { |
| 120 | return Err("duration must be greater than zero".to_owned()); |
| 121 | } |
| 122 | Ok(d) |
| 123 | } |
| 124 | |
| 125 | /// Runtime tuning options for the `RocksDB` proofs history backend. |
| 126 | #[derive(Debug, Clone, Copy, PartialEq, Eq, clap::Args)] |