Commit Graph
6 Commits
Author SHA1 Message Date
Wez Furlong b8694d00d8 remove problematic time 0.1 dependency 2023-04-18 15:02:59 -07:00
Wez Furlong 3e203eb0d1 switch to my redis-cell fork to avoid shared object in the build 2023-03-07 06:47:17 -07:00
Wez Furlong 0ca585bd5a Optionally use redis for throttles 2023-03-05 10:39:56 -07:00
Wez Furlong c275c696ff implement message and connection rate throttles
These use the local/in-process throttles.
Seems to work in my very light testing so far.
2023-02-28 13:56:58 -07:00
Wez Furlong 6ec25431aa add ThrottleSpec type
This will be used in the config
2023-02-27 19:05:20 -07:00
Wez Furlong a65863bfc4 add throttle crate
This currently uses in-memory only throttles, but it uses literally
the same code that is used to implement the redis-cell based solution
we're planning to hit for sharing throttles across a cluster,
so it should be a fairly easy future code change to make it do that,
with no change in semantics.
2023-02-27 19:05:20 -07:00