feat: measured oneshots (#3902)

* overseer: remove mut in connector

* monitored oneshots

* fmt

* remove debug log

* Update node/metered-channel/src/oneshot.rs

Co-authored-by: Andronik Ordian <write@reusable.software>

* Update node/metered-channel/src/oneshot.rs

Co-authored-by: Andronik Ordian <write@reusable.software>

* avoid two Arcs

* add expects

* alt impl

* rework the measured oneshots

* address review comments, use `Measurable` where possible

* chore/tracing: move `PrettyAuthorities` construction out of tracing macros

Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
Bernhard Schuster
2021-09-29 18:06:20 +02:00
committed by GitHub
parent c57a1e7934
commit 3c8e8637ff
6 changed files with 439 additions and 6 deletions
+6
View File
@@ -9,6 +9,12 @@ description = "Channels with attached Meters"
futures = "0.3.17"
futures-timer = "3.0.2"
derive_more = "0.99"
tracing = "0.1.28"
thiserror = "1.0.29"
[dev-dependencies]
futures = { version = "0.3.17", features = ["thread-pool"] }
assert_matches = "1.5"
env_logger = "0.9"
log = "0.4"
tracing = { version = "0.1.28", features = ["log"] }