Skip to content

Make all const duration values more explicit. #333

@jstuczyn

Description

@jstuczyn

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 that Duration can be constructed in compile time. So instead of
const DEFAULT_MESSAGE_STREAM_AVERAGE_DELAY: u64 = 500;
we could have:
const DEFAULT_MESSAGE_STREAM_AVERAGE_DELAY: Duration = Duration::from_millis(500);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions