From 5c4844e29abdf78e1d4b5ca1ed1d1f448e47c3f1 Mon Sep 17 00:00:00 2001 From: pedroluiznogueira Date: Sat, 1 Apr 2023 02:10:48 -0300 Subject: [PATCH] feat: do not generate a stream that will be processed right after --- .../earlybird_root/common/EarlybirdFeatureSchemaMerger.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/twitter/search/earlybird_root/common/EarlybirdFeatureSchemaMerger.java b/src/java/com/twitter/search/earlybird_root/common/EarlybirdFeatureSchemaMerger.java index f91d2d3c4..aaa53c82b 100644 --- a/src/java/com/twitter/search/earlybird_root/common/EarlybirdFeatureSchemaMerger.java +++ b/src/java/com/twitter/search/earlybird_root/common/EarlybirdFeatureSchemaMerger.java @@ -253,8 +253,8 @@ public class EarlybirdFeatureSchemaMerger { // We do not need checksum for exported vars as all cached schemas are from the majority of the // responses. - featureSchemas.keySet().stream().forEach(key -> exportedVersions.add(key.getVersion())); - exportedVersions.stream().forEach(version -> { + featureSchemas.keySet().forEach(key -> exportedVersions.add(key.getVersion())); + exportedVersions.forEach(version -> { builder.append('_'); builder.append(version); });