Skip to content

Commit b2c251e

Browse files
Merge pull request #218 from garyrussell/GH-217
GH-217: Add toString() to AutorecoveringChannel
2 parents 4f93869 + 4fe8074 commit b2c251e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringChannel.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public void removeRecoveryListener(RecoveryListener listener) {
596596
public void automaticallyRecover(AutorecoveringConnection connection, Connection connDelegate) throws IOException {
597597
RecoveryAwareChannelN defunctChannel = this.delegate;
598598
this.connection = connection;
599-
599+
600600
final RecoveryAwareChannelN newChannel = (RecoveryAwareChannelN) connDelegate.createChannel(this.getChannelNumber());
601601
if (newChannel == null)
602602
throw new IOException("Failed to create new channel for channel number=" + this.getChannelNumber() + " during recovery");
@@ -736,4 +736,9 @@ void updateConsumerTag(String tag, String newTag) {
736736
}
737737
}
738738

739+
@Override
740+
public String toString() {
741+
return this.delegate.toString();
742+
}
743+
739744
}

0 commit comments

Comments
 (0)