Skip to content

Commit 0d3648c

Browse files
fix(go-feature-flag): Remove unused variables (#747)
1 parent 322f281 commit 0d3648c

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

providers/go-feature-flag/pkg/controller/cache.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ const defaultCacheSize = 10000
1212
const defaultCacheTTL = 1 * time.Minute
1313

1414
type Cache struct {
15-
internalCache gcache.Cache
16-
maxEventInMemory int64
17-
ttl time.Duration
18-
disabled bool
15+
internalCache gcache.Cache
16+
ttl time.Duration
17+
disabled bool
1918
}
2019

2120
// NewCache creates a new cache with the given options.

providers/go-feature-flag/pkg/provider_options.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ type ProviderOptions struct {
4242
// default: 1 minute
4343
DataFlushInterval time.Duration
4444

45-
// DataMaxEventInMemory (optional) maximum number of item we keep in memory before calling the API.
46-
// If this number is reached before the DataFlushInterval we will call the API.
47-
// The parameter is used only if the cache is enabled, otherwise the collection of the data is done directly
48-
// when calling the evaluation API.
49-
// default: 500
50-
DataMaxEventInMemory int64
51-
5245
// DataCollectorMaxEventStored (optional) maximum number of event we keep in memory, if we reach this number it means
5346
// that we will start to drop the new events. This is a security to avoid a memory leak.
5447
// default: 100000

0 commit comments

Comments
 (0)