Make all const
duration values more explicit.
#333
Labels
Projects
Milestone
const
duration values more explicit.
#333
Currently all default config duration values are defined in
u64
and are treated as if they were milliseconds. This could be made more explicit now thatDuration
can be constructed in compile time. So instead ofconst DEFAULT_MESSAGE_STREAM_AVERAGE_DELAY: u64 = 500;
we could have:
const DEFAULT_MESSAGE_STREAM_AVERAGE_DELAY: Duration = Duration::from_millis(500);
The text was updated successfully, but these errors were encountered: