Skip to content

Commit 286c5db

Browse files
committed
flusher
1 parent ee27c9e commit 286c5db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdks/community/go/pkg/encoding/sse/writer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"io"
88
"log/slog"
9+
"net/http"
910
"strings"
1011
"sync"
1112
"time"
@@ -193,10 +194,9 @@ type flusher interface {
193194
Flush() error
194195
}
195196

196-
// flusherWithoutError interface for writers that support flushing
197-
type flusherWithoutError interface {
198-
Flush()
199-
}
197+
// flusherWithoutError is a type alias for http.Flusher.
198+
// It is used to flush the writer without returning an error.
199+
type flusherWithoutError = http.Flusher
200200

201201
// CustomEvent is a simple implementation of events.Event for error and custom events
202202
type CustomEvent struct {

0 commit comments

Comments
 (0)