Skip to content

Commit

Permalink
Merge 96a56af into a4cac0c
Browse files Browse the repository at this point in the history
  • Loading branch information
no2chem committed Dec 12, 2017
2 parents a4cac0c + 96a56af commit 37dba6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void removeServer(AbstractServer server) {
*/
public void sendResponse(ChannelHandlerContext ctx, CorfuMsg inMsg, CorfuMsg outMsg) {
outMsg.copyBaseFields(inMsg);
ctx.writeAndFlush(outMsg);
ctx.writeAndFlush(outMsg, ctx.voidPromise());
log.trace("Sent response: {}", outMsg);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,9 @@ public <T> CompletableFuture<T> sendMessageAndGetCompletable(ChannelHandlerConte
outstandingRequests.put(thisRequest, cf);
// Write the message out to the channel.
if (ctx == null) {
channel.writeAndFlush(message);
channel.writeAndFlush(message, channel.voidPromise());
} else {
ctx.writeAndFlush(message);
ctx.writeAndFlush(message, ctx.voidPromise());
}
log.trace("Sent message: {}", message);
final CompletableFuture<T> cfElapsed = cf.thenApply(x -> {
Expand Down Expand Up @@ -568,7 +568,7 @@ public void sendMessage(ChannelHandlerContext ctx, CorfuMsg message) {
message.setRequestID(thisRequest);
message.setEpoch(epoch);
// Write this message out on the channel.
outContext.writeAndFlush(message);
outContext.writeAndFlush(message, outContext.voidPromise());
// MetricsUtils.incConditionalCounter(MetricsUtils
// .isMetricsCollectionEnabled(), counterAsyncOpSent, 1);
log.trace("Sent one-way message: {}", message);
Expand All @@ -585,7 +585,7 @@ public void sendMessage(ChannelHandlerContext ctx, CorfuMsg message) {
public void sendResponseToServer(ChannelHandlerContext ctx, CorfuMsg inMsg, CorfuMsg outMsg) {
outMsg.copyBaseFields(inMsg);
outMsg.setEpoch(epoch);
ctx.writeAndFlush(outMsg);
ctx.writeAndFlush(outMsg, ctx.voidPromise());
log.trace("Sent response: {}", outMsg);
}

Expand Down

0 comments on commit 37dba6c

Please sign in to comment.