Skip to content

Commit 8e9a949

Browse files
committed
club configs
1 parent 59a3ef8 commit 8e9a949

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

hypertrace-graphql-service/src/main/java/org/hypertrace/graphql/service/DefaultGraphQlServiceConfig.java

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,29 @@ class DefaultGraphQlServiceConfig implements HypertraceGraphQlServiceConfig {
7676

7777
this.attributeServiceHost = untypedConfig.getString(ATTRIBUTE_SERVICE_HOST_PROPERTY);
7878
this.attributeServicePort = untypedConfig.getInt(ATTRIBUTE_SERVICE_PORT_PROPERTY);
79+
this.attributeServiceTimeout =
80+
getSuppliedDurationOrFallback(
81+
() -> untypedConfig.getDuration(ATTRIBUTE_SERVICE_CLIENT_TIMEOUT));
82+
7983
this.gatewayServiceHost = untypedConfig.getString(GATEWAY_SERVICE_HOST_PROPERTY);
8084
this.gatewayServicePort = untypedConfig.getInt(GATEWAY_SERVICE_PORT_PROPERTY);
81-
this.entityServiceHost = untypedConfig.getString(ENTITY_SERVICE_HOST_PROPERTY);
82-
this.entityServicePort = untypedConfig.getInt(ENTITY_SERVICE_PORT_PROPERTY);
83-
this.configServiceHost = untypedConfig.getString(CONFIG_SERVICE_HOST_PROPERTY);
84-
this.configServicePort = untypedConfig.getInt(CONFIG_SERVICE_PORT_PROPERTY);
85-
8685
this.gatewayServiceTimeout =
8786
getSuppliedDurationOrFallback(
8887
() -> untypedConfig.getDuration(GATEWAY_SERVICE_CLIENT_TIMEOUT));
89-
this.attributeServiceTimeout =
90-
getSuppliedDurationOrFallback(
91-
() -> untypedConfig.getDuration(ATTRIBUTE_SERVICE_CLIENT_TIMEOUT));
92-
this.configServiceTimeout =
93-
getSuppliedDurationOrFallback(
94-
() -> untypedConfig.getDuration(CONFIG_SERVICE_CLIENT_TIMEOUT));
88+
this.gatewayServiceMaxInboundMessageSize =
89+
untypedConfig.getBytes(GATEWAY_SERVICE_CLIENT_MAX_INBOUND_MESSAGE_SIZE).intValue();
90+
91+
this.entityServiceHost = untypedConfig.getString(ENTITY_SERVICE_HOST_PROPERTY);
92+
this.entityServicePort = untypedConfig.getInt(ENTITY_SERVICE_PORT_PROPERTY);
9593
this.entityServiceTimeout =
9694
getSuppliedDurationOrFallback(
9795
() -> untypedConfig.getDuration(ENTITY_SERVICE_CLIENT_TIMEOUT));
9896

99-
this.gatewayServiceMaxInboundMessageSize =
100-
untypedConfig.getBytes(GATEWAY_SERVICE_CLIENT_MAX_INBOUND_MESSAGE_SIZE).intValue();
97+
this.configServiceHost = untypedConfig.getString(CONFIG_SERVICE_HOST_PROPERTY);
98+
this.configServicePort = untypedConfig.getInt(CONFIG_SERVICE_PORT_PROPERTY);
99+
this.configServiceTimeout =
100+
getSuppliedDurationOrFallback(
101+
() -> untypedConfig.getDuration(CONFIG_SERVICE_CLIENT_TIMEOUT));
101102
}
102103

103104
private Duration getSuppliedDurationOrFallback(Supplier<Duration> durationSupplier) {

0 commit comments

Comments
 (0)