Skip to content

Commit 786301f

Browse files
committed
Fixing test errors on master
Mistyped a conditional statement when determining to use pooling for the network client or not.
1 parent e6fd514 commit 786301f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mr/src/main/java/org/elasticsearch/hadoop/rest/NetworkClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class NetworkClient implements StatsAware, Closeable {
5656
private final Stats stats = new Stats();
5757

5858
public NetworkClient(Settings settings) {
59-
this(settings,(SettingsUtils.hasJobTransportPoolingKey(settings) ? new CommonsHttpTransportFactory() : PooledTransportManager.getTransportFactory(settings)));
59+
this(settings, (!SettingsUtils.hasJobTransportPoolingKey(settings) ? new CommonsHttpTransportFactory() : PooledTransportManager.getTransportFactory(settings)));
6060
}
6161

6262
public NetworkClient(Settings settings, TransportFactory transportFactory) {

0 commit comments

Comments
 (0)