ec11e210ee
* use peak-ewma instead of head for latency calculation * Implement some suggested changes from PR * move latency to new package in workspace root * fix unit tests which now require peak_latency on Web3Rpc * Switch to atomics for peak-ewma This change is to avoid locking from tokio::sync::watch. * add decay calculation to latency reads in peak-ewma * Add some tests for peak-ewma * Sensible latency defaults and not blocking on full * Cleanup and a couple additional comments
16 lines
390 B
TOML
16 lines
390 B
TOML
[package]
|
|
name = "latency"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
ewma = "0.1.1"
|
|
log = "0.4.17"
|
|
serde = { version = "1.0.159", features = [] }
|
|
tokio = { version = "1.27.0", features = ["full"] }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1.27.0", features = ["full", "test-util"] }
|