pelikan-io / rustcommon

Common Rust library
Apache License 2.0
26 stars 13 forks source link

Ratelimit not working in Ubuntu 22 #33

Closed ktjd123 closed 1 year ago

ktjd123 commented 1 year ago

One line summary of the issue here.

Expected behavior

should wait on wait() call

As concisely as possible, describe the expected behavior.

Actual behavior

not waiting or get refilled immediately, So not waiting at all.

As concisely as possible, describe the observed behavior.

Steps to reproduce the behavior

Make a rate limiter and run it on Ubuntu.

Please list all relevant steps to reproduce the observed behavior.

Thank you and appreciate your works.

brayniac commented 1 year ago

@ktjd123 - can you please share the parameters for the ratelimiter?

ktjd123 commented 1 year ago

@brayniac Hi, Thank you for answer, It was made with Ratelimiter::new(1, 1, 20),

brayniac commented 1 year ago

This was fixed by #37