Closed bblancha closed 7 years ago
I've found another issue in PR: it does wait
a couple of times. That is incorrect, because it makes stream blocking. I'm going to fix it myself now.
Ok. I'm interested to see how you fix it.
For metadata_and_future_and_trailing_metadata(), we can use result.join(trailing). I can't figure out how to do it yet for stream_with_trailing() in stream_item::stream_with_trailing().
Committed as 1abb6afc9dc3a6a4c04455a46c7ce830b9734a0a. Thanks!
I can't figure out how to do it yet for stream_with_trailing() in stream_item::stream_with_trailing().
Simply by converting future into stream with into_stream
operation:
let stream = stream.map(ItemOrMetadata::Item);
let trailing = trailing.map(ItemOrMetadata::TrailingMetadata).into_stream();
GrpcStreamWithTrailingMetadata::new(stream.chain(trailing))
Fixes #43 on the server side.
note: also changes the server api slightly, by adding parameters for trailing metadata