Closed PawelJastrzebski closed 1 month ago
@drcaramelsyrup thx for review.
I would be happy to make PR with that change, but I'm not sure what implementation style is appropriate. Could you guide me in what direction should I go?
Hi there, thanks @PawelJastrzebski . IMO the new constructor works fine.
What is the problem your feature solves, or the need it fulfills?
pingora-limits Unable to set custom hashes and slots for adjusting false positive ratio while constructing
Rate
default values in "constructor" fn.
Describe the solution you'd like
new "constructor"
fn new_custom(interval, hashes, slots)
Describe alternatives you've considered
Adding builder like function instead of new constructor.
Additional context
Source file: https://docs.rs/pingora-limits/0.3.0/src/pingora_limits/rate.rs.html#43