Config generation is never null
@@ -115,14 +115,13 @@ public class JRTClientConfigRequestV3 implements JRTClientConfigRequest {
sub.getDefContent(),
ConfigUtils.getCanonicalHostName(),
config != null ? config.getConfigMd5() : "",
- configState.getGeneration() != null ? configState.getGeneration() : 0L,
+ configState.getGeneration(),
sub.timingValues().getSubscribeTimeout(),
trace,
compressionType,
vespaVersion);
}
-
public static JRTClientConfigRequest createFromRaw(RawConfig config,
long serverTimeout,
Trace trace,
@@ -140,7 +139,6 @@ public class JRTClientConfigRequestV3 implements JRTClientConfigRequest {
vespaVersion);
}
-
public static JRTClientConfigRequest createWithParams(ConfigKey<?> reqKey,
DefContent defContent,
String hostname,
