Created
May 7, 2018 20:40
-
-
Save aep/b5673a6367305e36791a359baa4aaea0 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
Compiling zerox v0.1.0 (file:///home/aep/proj/radiant/zerox/zerox) | |
error[E0308]: mismatched types | |
--> src/server.rs:112:23 | |
| | |
112 | futures::done(self.get_blob(format!("obj/{}", request.get_ref().id)) | |
| _______________________^ | |
113 | | .map(|o|o.content().to_vec()) | |
114 | | .map_err(|_|{ | |
115 | | tower_grpc::Error::Grpc(tower_grpc::Status::NOT_FOUND, http::HeaderMap::new()) | |
... | | |
120 | | Response::new(Box::new(stream)) | |
121 | | })) | |
| |______________^ expected trait futures::Stream, found struct `futures::IntoStream` | |
| | |
= note: expected type `std::result::Result<tower_grpc::Response<std::boxed::Box<futures::Stream<Error=tower_grpc::Error, Item=zeroxproto::v1::Chunk>>>, tower_grpc::Error<()>>` | |
found type `std::result::Result<tower_grpc::Response<std::boxed::Box<futures::IntoStream<futures::FutureResult<zeroxproto::v1::Chunk, _>>>>, tower_grpc::Error<_>>` | |
error: aborting due to previous error | |
error: Could not compile `zerox`. | |
To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment