Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/dev/openfeature/sdk/OpenFeatureClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class OpenFeatureClient implements Client {
private final AtomicReference<EvaluationContext> evaluationContext = new AtomicReference<>();

private final HookSupport hookSupport;
private final ClientMetadata clientMetadata;

/**
* Deprecated public constructor. Use OpenFeature.API.getClient() instead.
Expand All @@ -70,6 +71,7 @@ public OpenFeatureClient(OpenFeatureAPI openFeatureAPI, String domain, String ve
this.version = version;
this.hookSupport = new HookSupport();
this.clientHooks = new ConcurrentLinkedQueue<>();
this.clientMetadata = this::getDomain;
}

/**
Expand Down Expand Up @@ -467,7 +469,7 @@ public FlagEvaluationDetails<Value> getObjectDetails(

@Override
public ClientMetadata getMetadata() {
return this::getDomain;
return clientMetadata;
Comment thread
toddbaert marked this conversation as resolved.
}

/**
Expand Down
Loading