szetszwo commented on pull request #330:
URL: https://github.com/apache/incubator-ratis/pull/330#issuecomment-739644321
Let's keep DataStreamApi.stream() for convenience. We may provide a default
implementation and remove DataStreamClientImpl.stream() though.
```
+++
b/ratis-client/src/main/java/org/apache/ratis/client/api/DataStreamApi.java
@@ -38,7 +38,9 @@ import java.nio.ByteBuffer;
*/
public interface DataStreamApi {
/** Create a stream to write data. */
- DataStreamOutput stream();
+ default DataStreamOutput stream() {
+ return stream(null);
+ }
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]