Unverified Commit 21e557d2 authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

Refactor `Middleware` to `Logger` (#845)



* Rename Middleware to Metrics
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Change documentation to reflect the `Metrics` trait
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Middleware name refactoring
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Http middleware renaming
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Rename examples
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Update http-server/src/server.rs
Co-authored-by: James Wilson's avatarJames Wilson <james@jsdw.me>

* http: Use `request` instead of `HeaderMap` for logging
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Rename `Metrics` -> `Logger`
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Fix cargo clippy
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Fix examples
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Fix tests
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Fix cargo fmt
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>

* Fix hyper dependency
Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
Co-authored-by: James Wilson's avatarJames Wilson <james@jsdw.me>
parent 9f88eb81
Pipeline #206337 passed with stages
in 4 minutes and 45 seconds