Closed 0xlunar closed 3 weeks ago
LGTM
or actually, can you make the public API use std::time::Duration, and convert internally using https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
and then u64::try_from(milis).ok()
Sorry to do this yet again but I think it would make more sense that you use u64::try_from(milis).ok().unwrap_or(u64::MAX)
(or just copy the stdlib but with u64, whichever you prefer)
as having such a long timeout might as well be like waiting an eternity (I mean I think nothing will be around in 5849424 centuries (u64::MAX milis in centuries))
I think the note should be updated or omitted
Sorry to do this yet again but I think it would make more sense that you use
u64::try_from(milis).ok().unwrap_or(u64::MAX)
(or just copy the stdlib but with u64, whichever you prefer) as having such a long timeout might as well be like waiting an eternity (I mean I think nothing will be around in 5849424 centuries (u64::MAX milis in centuries))I think the note should be updated or omitted
It's all goods, happy to contribute. I went with the unwrap_or(u64::MAX) as was simplest to change and seems reasonably clear.
Adds implementation for adjustable action_chain durations mentioned in issue #241