Replace the telemetry Mutex with a channel (#3266)

* Replace the telemetry Mutex with a channel

* Don't return Err() if channel is full

* Change polling pattern

* Add more issue numbers
This commit is contained in:
Pierre Krieger
2019-08-01 09:43:37 +02:00
committed by Gavin Wood
parent 0aa3bbf202
commit f8db199b97
3 changed files with 100 additions and 37 deletions
+3
View File
@@ -16,6 +16,9 @@ log = "0.4"
rand = "0.6"
serde = { version = "1.0.81", features = ["derive"] }
slog = { version = "^2", features = ["nested-values"] }
# TODO: we're using slog-async just to be able to clone records; See https://github.com/slog-rs/slog/issues/221,
# https://github.com/paritytech/substrate/issues/2823 and https://github.com/paritytech/substrate/issues/3260
slog-async = { git = "https://github.com/paritytech/slog-async", features = ["nested-values"] }
slog-json = { version = "^2", features = ["nested-values"] }
slog-scope = "^4"
tokio-io = "0.1"