Created
February 28, 2022 19:30
-
-
Save jcrossley3/ed83f1a6d2d886631d64c9deed44e1c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0271]: type mismatch resolving `<PrometheusMetrics as Transform<<impl ServiceFactory<ServiceRequest, Response = ServiceResponse, Error = drogue_cloud_service_api::webapp::Error, Config = (), InitError = ()> as ServiceFactory<ServiceRequest>>::Service, ServiceRequest>>::Response == ServiceResponse` | |
--> authentication-service/src/lib.rs:57:14 | |
| | |
57 | .wrap(prom) | |
| ^^^^ expected struct `BoxBody`, found enum `EitherBody` | |
... | |
105 | / app!( | |
106 | | data, | |
107 | | max_json_payload_size, | |
108 | | enable_auth, | |
109 | | auth, | |
110 | | Some(prometheus.clone()) | |
111 | | ) | |
| |_________- in this macro invocation | |
| | |
= note: expected struct `ServiceResponse<BoxBody>` | |
found struct `ServiceResponse<EitherBody<StreamLog<_>, StreamLog<std::string::String>>>` | |
= note: required because of the requirements on the impl of `Transform<<impl ServiceFactory<ServiceRequest, Response = ServiceResponse, Error = drogue_cloud_service_api::webapp::Error, Config = (), InitError = ()> as ServiceFactory<ServiceRequest>>::Service, ServiceRequest>` for `drogue_cloud_service_common::middleware::Optional<PrometheusMetrics>` | |
note: required by a bound in `App::<T>::wrap` | |
--> /home/jim/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-4.0.1/src/app.rs:358:12 | |
| | |
358 | M: Transform< | |
| ____________^ | |
359 | | T::Service, | |
360 | | ServiceRequest, | |
361 | | Response = ServiceResponse<B>, | |
362 | | Error = Error, | |
363 | | InitError = (), | |
364 | | > + 'static, | |
| |_____________^ required by this bound in `App::<T>::wrap` | |
= note: this error originates in the macro `app` (in Nightly builds, run with -Z macro-backtrace for more info) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment