Skip to content

Commit 3f6a13d

Browse files
committed
updates
1 parent 7a141bd commit 3f6a13d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

client/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func WithTarget(target evaluation.Target) ConfigOption {
9292

9393
// WithEventStreamListener configures the SDK to forward Events from the Feature
9494
// Flag server to the passed EventStreamListener
95-
func WithEventStreamListener(cs stream.EventStreamListener) ConfigOption {
95+
func WithEventStreamListener(e stream.EventStreamListener) ConfigOption {
9696
return func(config *config) {
97-
config.eventStreamListener = cs
97+
config.eventStreamListener = e
9898
}
9999
}

stream/stream.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ type Connection interface {
1515
// EventStreamListener provides a way to hook in to the SSE Events that the SDK
1616
// recieves from the FeatureFlags server and forward them on to another type.
1717
type EventStreamListener interface {
18-
// Pub publishes an event from the SDK to your Listener
18+
// Pub publishes an event from the SDK to your Listener. Pub should implement
19+
// any backoff/retry logic as this is not handled in the SDK.
1920
Pub(ctx context.Context, event Event) error
2021
}
2122

0 commit comments

Comments
 (0)