Skip to content

Commit 2358c60

Browse files
authored
Update exposure.go
1 parent 713c1a8 commit 2358c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openfeature/exposure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (w *exposureWriter) flush() {
171171

172172
// Move buffer to local variable and create new buffer
173173
events := w.buffer
174-
w.buffer = make([]exposureEvent, len(events)/2)
174+
w.buffer = make([]exposureEvent, 0, len(events)/2)
175175
w.mu.Unlock()
176176

177177
// Build payload

0 commit comments

Comments
 (0)