File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
src/test/java/com/rabbitmq/client/test/functional Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -721,15 +721,11 @@ private AutorecoveringConnection newRecoveringConnection(boolean disableTopology
721
721
return (AutorecoveringConnection ) cf .newConnection ();
722
722
}
723
723
724
- private AutorecoveringConnection newRecoveringConnection (boolean disableTopologyRecovery , Address [] addresses )
725
- throws IOException , TimeoutException {
726
- ConnectionFactory cf = buildConnectionFactoryWithRecoveryEnabled (disableTopologyRecovery );
727
- return (AutorecoveringConnection ) cf .newConnection (addresses );
728
- }
729
-
730
724
private AutorecoveringConnection newRecoveringConnection (Address [] addresses )
731
725
throws IOException , TimeoutException {
732
- return newRecoveringConnection (false , Arrays .asList (addresses ));
726
+ ConnectionFactory cf = buildConnectionFactoryWithRecoveryEnabled (false );
727
+ // specifically use the Address[] overload
728
+ return (AutorecoveringConnection ) cf .newConnection (addresses );
733
729
}
734
730
735
731
private AutorecoveringConnection newRecoveringConnection (boolean disableTopologyRecovery , List <Address > addresses )
You can’t perform that action at this time.
0 commit comments