Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
  • Loading branch information
thomaspoignant committed Jan 20, 2025
1 parent 08c2306 commit 467e615
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.github.benmanes.caffeine.cache.Caffeine;
import dev.openfeature.sdk.ProviderEvaluation;
import java.util.Map;
import lombok.Builder;
import lombok.Getter;
import java.util.Map;

/** GoFeatureFlagProviderOptions contains the options to initialise the provider. */
@Builder
Expand Down Expand Up @@ -95,7 +95,6 @@ public class GoFeatureFlagProviderOptions {
/**
* (optional) exporterMetadata is the metadata we send to the GO Feature Flag relay proxy when we report the
* evaluation data usage.
*
* ‼️Important: If you are using a GO Feature Flag relay proxy before version v1.41.0, the information of this
* field will not be added to your feature events.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import dev.openfeature.sdk.exceptions.TypeMismatchError;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,21 @@
/** Events data. */
@Getter
public class Events {
/**
* meta contains the metadata of the events to be sent along the events.
*/
private final Map<String, Object> meta = new HashMap<>();

/**
* list of events to be sent to the data collector to collect the evaluation data.
*/
private final List<Event> events;

/**
* Constructor.
* @param events - list of events to be sent to the data collector to collect the evaluation data.
* @param exporterMetadata - metadata of the events to be sent along the events.
*/
public Events(List<Event> events, Map<String, Object> exporterMetadata) {
this.events = new ArrayList<>(events);
this.meta.put("provider", "java");
Expand Down

0 comments on commit 467e615

Please sign in to comment.