Converts CLI arguments into storage options.
(self)
| 108 | impl ProofsHistoryMdbxArgs { |
| 109 | /// Converts CLI arguments into storage options. |
| 110 | pub const fn storage_options(self) -> MdbxProofsStorageOptions { |
| 111 | MdbxProofsStorageOptions { |
| 112 | max_read_transaction_duration: self.max_read_transaction_duration, |
| 113 | } |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | fn parse_positive_duration(s: &str) -> Result<Duration, String> { |