We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee27c9e commit 286c5dbCopy full SHA for 286c5db
sdks/community/go/pkg/encoding/sse/writer.go
@@ -6,6 +6,7 @@ import (
6
"fmt"
7
"io"
8
"log/slog"
9
+ "net/http"
10
"strings"
11
"sync"
12
"time"
@@ -193,10 +194,9 @@ type flusher interface {
193
194
Flush() error
195
}
196
-// flusherWithoutError interface for writers that support flushing
197
-type flusherWithoutError interface {
198
- Flush()
199
-}
+// flusherWithoutError is a type alias for http.Flusher.
+// It is used to flush the writer without returning an error.
+type flusherWithoutError = http.Flusher
200
201
// CustomEvent is a simple implementation of events.Event for error and custom events
202
type CustomEvent struct {
0 commit comments