aboutsummaryrefslogtreecommitdiffstats
path: root/src/ratelimiter.rs
diff options
context:
space:
mode:
authorJake McGinty <me@jake.su>2018-05-06 18:57:52 -0700
committerJake McGinty <me@jake.su>2018-05-06 18:57:52 -0700
commitf514e9f50c685cf46c7c5055a1eba3e40c165f39 (patch)
tree57500866abf2e41a7476a03e4e90c176c4f468b6 /src/ratelimiter.rs
parentpeer_server: hold on to single local csprng instance for performance (diff)
downloadwireguard-rs-f514e9f50c685cf46c7c5055a1eba3e40c165f39.tar.xz
wireguard-rs-f514e9f50c685cf46c7c5055a1eba3e40c165f39.zip
global: small aesthetic cleanup
Diffstat (limited to 'src/ratelimiter.rs')
-rw-r--r--src/ratelimiter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ratelimiter.rs b/src/ratelimiter.rs
index 26faaa4..299995e 100644
--- a/src/ratelimiter.rs
+++ b/src/ratelimiter.rs
@@ -25,8 +25,8 @@ struct Entry {
}
struct RateLimiter {
- table: HashMap<IpAddr, Entry>,
- rx: mpsc::Receiver<()>,
+ table : HashMap<IpAddr, Entry>,
+ rx : mpsc::Receiver<()>,
}
impl RateLimiter {