-
Notifications
You must be signed in to change notification settings - Fork 283
Implement human-readable durations in the config #4294
Copy link
Copy link
Open
Labels
EnhancementNew feature or requestNew feature or requestUISomething about the interfaceSomething about the interfaceconfig-changesChanges in configuration and start up of the IrohaChanges in configuration and start up of the Irohagood first issueGood for newcomersGood for newcomersiroha2-devThe re-implementation of a BFT hyperledger in RUSTThe re-implementation of a BFT hyperledger in RUSTquestionFurther information is requestedFurther information is requested
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or requestNew feature or requestUISomething about the interfaceSomething about the interfaceconfig-changesChanges in configuration and start up of the IrohaChanges in configuration and start up of the Irohagood first issueGood for newcomersGood for newcomersiroha2-devThe re-implementation of a BFT hyperledger in RUSTThe re-implementation of a BFT hyperledger in RUSTquestionFurther information is requestedFurther information is requested
Type
Projects
Status
Roadmap
Description
Enhance
HumanDurationtype 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
humantimecrate for reference. Maybe it can be used as is. Otherwise, it is straighforward (and quite interesting!) to write our own parser with something likewinnow.