Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Delays::generate() function (or create multiple options) to make it more obvious what kind of unit it expects #42

Open
jstuczyn opened this issue Jan 31, 2020 · 1 comment

Comments

@jstuczyn
Copy link
Contributor

pub fn generate(number: usize, average_delay: f64) -> Vec<Delay> {

@jstuczyn
Copy link
Contributor Author

Currently, apart from going into the source code, it isn't obvious that it expects the 'average_delay' to be in seconds. Perhaps the most generic approach would be to make it accept time::Duration ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant