web3-proxy/latency/Cargo.toml
Rory Trent ec11e210ee
Peak ewma (#63)
* 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
2023-05-11 13:09:15 -07:00

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"] }