Skip to content

Commit 5e37f26

Browse files
committed
Update WriteStream implementations with callback removals
1 parent a40936b commit 5e37f26

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/main/java/io/vertx/httpproxy/impl/BufferingWriteStream.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,8 @@ public Future<Void> write(Buffer data) {
4242
}
4343

4444
@Override
45-
public void write(Buffer data, Handler<AsyncResult<Void>> handler) {
46-
content.appendBuffer(data);
47-
handler.handle(Future.succeededFuture());
48-
}
49-
50-
@Override
51-
public void end(Handler<AsyncResult<Void>> handler) {
52-
handler.handle(Future.succeededFuture());
45+
public Future<Void> end() {
46+
return Future.succeededFuture();
5347
}
5448

5549
@Override

0 commit comments

Comments
 (0)