Inline some stuff
@@ -109,14 +109,12 @@ public class JRTClientConfigRequestV3 implements JRTClientConfigRequest {
Trace trace,
CompressionType compressionType,
Optional<VespaVersion> vespaVersion) {
- String hostname = ConfigUtils.getCanonicalHostName();
- ConfigKey<T> key = sub.getKey();
ConfigSubscription.ConfigState<T> configState = sub.getConfigState();
- T i = configState.getConfig();
- return createWithParams(key,
+ T config = configState.getConfig();
+ return createWithParams(sub.getKey(),
sub.getDefContent(),
- hostname,
- i != null ? i.getConfigMd5() : "",
+ ConfigUtils.getCanonicalHostName(),
+ config != null ? config.getConfigMd5() : "",
configState.getGeneration() != null ? configState.getGeneration() : 0L,
sub.timingValues().getSubscribeTimeout(),
trace,
