Implement human-readable durations in the config #4294
Labels
config-changes
Changes in configuration and start up of the Iroha
Enhancement
New feature or request
good first issue
Good for newcomers
iroha2-dev
The re-implementation of a BFT hyperledger in RUST
question
Further information is requested
UI
Something about the interface
Description
Enhance
HumanDuration
type to actually parse a human-readable string:https://github.com/hyperledger/iroha/blob/964476722e2a219becaacdb3676ca058ec5748cd/config/base/src/lib.rs#L23-L27
Specification
Here is an excerpt from the configuration reference draft:
I used
humantime
crate for reference. Maybe it can be used as is. Otherwise, it is straighforward (and quite interesting!) to write our own parser with something likewinnow
.The text was updated successfully, but these errors were encountered: