Closed tamalsaha closed 1 year ago
Thanks for the note — do you mind elaborating what is the potential key conflict?
Say there are 2 key functions k1, k2
For req_1, k1(req_1) = aa and k2(req_1) = b, so final key = aab For req_2, k1(req_2) = a and k2(req_2) = ab, so final key = aab
If some kind of delimiter is used to concat the components, this two requests will not generate the same final key.
Ah yes indeed. Thx, I’ll separate with “:”
https://github.com/go-chi/httprate/blob/master/httprate.go#L101