File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
labels-config-service-impl/src/main/java/org/hypertrace/label/config/service Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 4545
4646@ Slf4j
4747public class LabelsConfigServiceImpl extends LabelsConfigServiceGrpc .LabelsConfigServiceImplBase {
48- private static final String LABELS_CONFIG_SERVICE_CONFIG = "labels.config.service" ;
49- private static final String SYSTEM_LABELS = "system.labels" ;
5048 private final LabelStore labelStore ;
5149 private final SystemLabelInfoUtils systemLabelInfoUtils ;
5250
Original file line number Diff line number Diff line change @@ -60,15 +60,15 @@ public void updateSystemLabelInfo(Label label) {
6060 }
6161
6262 private List <Label > buildSystemLabelList (List <? extends ConfigObject > configObjectList ) {
63- Map <String , Label > labelIdMap =
63+ Map <String , Label > labelsIdMap =
6464 configObjectList .stream ()
6565 .map (SystemLabelInfoUtils ::buildLabelFromConfig )
6666 .collect (Collectors .toMap (Label ::getId , identity ()));
6767 labelStore .getAllObjects (RequestContext .CURRENT .get ()).stream ()
6868 .map (ContextualConfigObject ::getData )
69- .filter (label -> labelIdMap .containsKey (label .getId ()))
70- .forEach (label -> labelIdMap .put (label .getId (), label ));
71- return labelIdMap .values ().stream ().collect (Collectors .toUnmodifiableList ());
69+ .filter (label -> labelsIdMap .containsKey (label .getId ()))
70+ .forEach (label -> labelsIdMap .put (label .getId (), label ));
71+ return labelsIdMap .values ().stream ().collect (Collectors .toUnmodifiableList ());
7272 }
7373
7474 @ SneakyThrows
You can’t perform that action at this time.
0 commit comments