Skip to content

Commit

Permalink
dbs-utils: add rate limiter.
Browse files Browse the repository at this point in the history
Provides a rate limiter written in Rust useful for IO operations that need to
be throttled.

Signed-off-by: wllenyj <[email protected]>
  • Loading branch information
wllenyj committed Mar 17, 2022
1 parent 064bca9 commit 6760259
Show file tree
Hide file tree
Showing 3 changed files with 884 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/dbs-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ readme = "README.md"

[dependencies]
anyhow = "1.0"
serde = { version = "1.0.27", features = ["derive", "rc"] }
event-manager = { version = "0.2.1", features = [ "remote_endpoint" ] }
log = "0.4.14"
serde = { version = "1.0.27", features = ["derive", "rc"] }
timerfd = "1.0"
vmm-sys-util = "0.9.0"

[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions crates/dbs-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

pub mod epoll_manager;
pub mod metric;
pub mod rate_limiter;
Loading

0 comments on commit 6760259

Please sign in to comment.