Skip to content

Commit 445a150

Browse files
authored
Merge pull request #944 from rabbitmq/void-promise
Add voidPromise to channel write when possible
2 parents 2f02087 + 4d47af7 commit 445a150

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/rabbitmq/stream/impl/Client.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ public void credit(byte subscriptionId, int credit) {
13091309
bb.writeShort(VERSION_1);
13101310
bb.writeByte(subscriptionId);
13111311
bb.writeShort((short) credit);
1312-
channel.writeAndFlush(bb);
1312+
channel.writeAndFlush(bb, channel.voidPromise());
13131313
}
13141314

13151315
/**
@@ -1418,7 +1418,7 @@ public void storeOffset(String reference, String stream, long offset) {
14181418
bb.writeShort(stream.length());
14191419
bb.writeBytes(stream.getBytes(CHARSET));
14201420
bb.writeLong(offset);
1421-
channel.writeAndFlush(bb);
1421+
channel.writeAndFlush(bb, channel.voidPromise());
14221422
}
14231423

14241424
public QueryOffsetResponse queryOffset(String reference, String stream) {
@@ -1890,7 +1890,7 @@ public void consumerUpdateResponse(
18901890
if (offsetSpecification.isOffset() || offsetSpecification.isTimestamp()) {
18911891
bb.writeLong(offsetSpecification.getOffset());
18921892
}
1893-
channel.writeAndFlush(bb);
1893+
channel.writeAndFlush(bb, channel.voidPromise());
18941894
}
18951895

18961896
void shutdownReason(ShutdownReason reason) {

0 commit comments

Comments
 (0)