From a8a2cd6f30b26beaba24c3623ac3155d17bfc6b8 Mon Sep 17 00:00:00 2001 From: "christian.lutnik" Date: Fri, 10 Jan 2025 10:47:11 +0100 Subject: [PATCH] fixup! feat: Update in-process resolver to support flag metadata #1102 Signed-off-by: christian.lutnik --- .../flagd/resolver/process/InProcessResolver.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/InProcessResolver.java b/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/InProcessResolver.java index 78bf704dd..b8a7c4a1e 100644 --- a/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/InProcessResolver.java +++ b/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/InProcessResolver.java @@ -41,7 +41,6 @@ public class InProcessResolver implements Resolver { private final Consumer onConnectionEvent; private final Operator operator; private final long deadline; - private final ImmutableMetadata fallBackMetadata; private final Supplier connectedSupplier; private final String scope; @@ -65,14 +64,7 @@ public InProcessResolver( this.onConnectionEvent = onConnectionEvent; this.operator = new Operator(); this.connectedSupplier = connectedSupplier; - if (options.getSelector() == null) { - this.scope = null; - this.fallBackMetadata = null; - } else { - this.scope = options.getSelector(); - this.fallBackMetadata = - ImmutableMetadata.builder().addString("scope", this.scope).build(); - } + this.scope = options.getSelector(); } /**