Skip to content

Commit 0963ee3

Browse files
Clarify comments
1 parent a3085b3 commit 0963ee3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,9 @@ public int getChannelRpcTimeout() {
11341134
}
11351135

11361136
/**
1137-
* Set whether or not channels check the reply type of an RPC call.
1137+
* When set to true, channels will check the response type (e.g. queue.declare
1138+
* expects a queue.declare-ok response) of RPC calls
1139+
* and ignore those that do not match.
11381140
* Default is false.
11391141
* @param channelShouldCheckRpcResponseType
11401142
*/

src/main/java/com/rabbitmq/client/impl/AMQChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void handleCompleteInboundCommand(AMQCommand command) throws IOException
161161
// waiting RPC continuation.
162162
if (!processAsync(command)) {
163163
// The filter decided not to handle/consume the command,
164-
// so it must be some reply to an earlier RPC.
164+
// so it must be a response to an earlier RPC.
165165
if (_checkRpcResponseType) {
166166
synchronized (_channelMutex) {
167167
// check if this reply command is intended for the current waiting request before calling nextOutstandingRpc()

0 commit comments

Comments
 (0)