File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ func WithTarget(target evaluation.Target) ConfigOption {
92
92
93
93
// WithEventStreamListener configures the SDK to forward Events from the Feature
94
94
// Flag server to the passed EventStreamListener
95
- func WithEventStreamListener (cs stream.EventStreamListener ) ConfigOption {
95
+ func WithEventStreamListener (e stream.EventStreamListener ) ConfigOption {
96
96
return func (config * config ) {
97
- config .eventStreamListener = cs
97
+ config .eventStreamListener = e
98
98
}
99
99
}
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ type Connection interface {
15
15
// EventStreamListener provides a way to hook in to the SSE Events that the SDK
16
16
// recieves from the FeatureFlags server and forward them on to another type.
17
17
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.
19
20
Pub (ctx context.Context , event Event ) error
20
21
}
21
22
You can’t perform that action at this time.
0 commit comments