protocol(limiter): provide AsTokens for wrapper limits
Provide AsTokens implementations for the Outbound and Inbound
newtypes of RateLimit.
This allows them to be used for the rate limiting method.
3 files changed
+40
-6
c675683d
→
58305cda
modified crates/radicle-protocol/src/service.rs
@@ -1313,7 +1313,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1819,8 +1819,8 @@ where
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/service/limiter.rs
@@ -74,6 +74,26 @@ impl AsTokens for config::RateLimit {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/node/config.rs
@@ -244,7 +244,7 @@ pub struct ConnectionLimits {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -599,6 +599,18 @@ impl From<LimitGossipMaxAge> for LocalDuration {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -631,7 +643,8 @@ wrapper!(
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -640,7 +653,8 @@ wrapper!(
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|