Browse Source

minor refactoring due to comments

pull/11618/head
YevhenBondarenko 2 years ago
parent
commit
54e86b27a8
  1. 4
      rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/rest/TbHttpClient.java

4
rule-engine/rule-engine-components/src/main/java/org/thingsboard/rule/engine/rest/TbHttpClient.java

@ -97,7 +97,7 @@ public class TbHttpClient {
} }
ConnectionProvider connectionProvider = ConnectionProvider ConnectionProvider connectionProvider = ConnectionProvider
.builder("http") .builder("rule-engine-http-client")
.maxConnections(getPoolMaxConnections()) .maxConnections(getPoolMaxConnections())
.build(); .build();
@ -150,7 +150,7 @@ public class TbHttpClient {
} }
private int getPoolMaxConnections() { private int getPoolMaxConnections() {
String poolMaxConnectionsEnv = System.getenv("TB_HTTP_POOL_MAX_CONNECTIONS"); String poolMaxConnectionsEnv = System.getenv("TB_RE_HTTP_CLIENT_POOL_MAX_CONNECTIONS");
int poolMaxConnections; int poolMaxConnections;
if (poolMaxConnectionsEnv != null) { if (poolMaxConnectionsEnv != null) {

Loading…
Cancel
Save