Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions internal/datasourcev2/streaming_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,7 @@ func (sp *StreamProcessor) consumeStream(stream *es.Stream, resultChan chan<- su
break
}

if !goodbye.Silent {
sp.loggers.Errorf("SSE server received error: %s (%v)", goodbye.Reason, goodbye.Catastrophe)
}
sp.loggers.Infof("SSE server sent goodbye: %s", goodbye.Reason)
case subsystems.EventError:
var errorData subsystems.Error
err := json.Unmarshal([]byte(event.Data()), &errorData)
Expand Down
4 changes: 1 addition & 3 deletions internal/datasourcev2/streaming_data_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,7 @@ func TestStreamingDataSourceIgnoresGoodbye(t *testing.T) {
protocol.WithPutObjects([]subsystems.PutObject{change})

protocol.WithGoodbye(subsystems.Goodbye{
Reason: "for testing reason",
Silent: false,
Catastrophe: false,
Reason: "for testing reason",
})

// Push a change through the data source
Expand Down
4 changes: 1 addition & 3 deletions subsystems/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,7 @@ func (e Error) Name() EventName {
// Do not use it.
// You have been warned.
type Goodbye struct {
Reason string `json:"reason"`
Silent bool `json:"silent"`
Catastrophe bool `json:"catastrophe"`
Reason string `json:"reason"`
}

//nolint:revive // Event method.
Expand Down
Loading