1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-10 21:22:20 +03:00
Commit Graph

2 Commits

Author SHA1 Message Date
Matt Joras
99e5aedc21 Use microseconds in SlidingWindowRateLimiter
Summary: Without this the math doesn't really make sense, since it's done in whole intervals of seconds.

Reviewed By: sharmafb

Differential Revision: D21614903

fbshipit-source-id: 1bd9fddb9c667de1ae509340feedc0058befd50c
2020-05-18 16:40:43 -07:00
Matt Joras
58ac14fa2f Sliding window rate limiter.
Summary: This is a very simple rate limiter that allows us to very cheaply limit things like Initials per server per window. See the comment in SlidingWindowRateLimiter.h for a description of how it functions.

Reviewed By: sharmafb

Differential Revision: D20311019

fbshipit-source-id: e0b4fddd467252c43b63ae21dfd3d0284b7926e7
2020-04-13 16:45:30 -07:00