We have already checked this property, reuse the result.
Change-Id: Ia21b4bb9d7f927d4c922cbeb58c1a82b6c6e9621
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
// Support deprecated statistic related services for backward compatibility. The only exception from deprecation
// is the aggregated flow statistic with match criteria input.
- if (isStatisticsRpcEnabled && !deviceContext.canUseSingleLayerSerialization()) {
+ if (isStatisticsRpcEnabled && !singleLayer) {
final var compatibilityXidSeed = new AtomicLong();
// FIXME: why is this separate?
final var statsCompatXidSeed = new AtomicLong();