Skip to content

Commit e7c0de3

Browse files
committed
chore(go-examples): remove unused IsComplete
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 3f89b06 commit e7c0de3

File tree

1 file changed

+0
-12
lines changed
  • examples/go/streams-client

1 file changed

+0
-12
lines changed

examples/go/streams-client/app.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ type ThrottleStream[T any] struct {
3131
values []T
3232
}
3333

34-
func (s *ThrottleStream[T]) IsComplete() bool {
35-
// The stream has full contents available in `s.values`,
36-
// but we return `false` to force async transmission
37-
return false
38-
}
39-
4034
func (s *ThrottleStream[T]) Receive() ([]T, error) {
4135
if len(s.values) == 0 {
4236
return nil, io.EOF
@@ -52,12 +46,6 @@ type ThrottleReader struct {
5246
buf []byte
5347
}
5448

55-
func (s *ThrottleReader) IsComplete() bool {
56-
// The reader has full contents available in `s.buf`,
57-
// but we return `false` to force async transmission
58-
return false
59-
}
60-
6149
func (s *ThrottleReader) Read(p []byte) (int, error) {
6250
if len(s.buf) == 0 {
6351
return 0, io.EOF

0 commit comments

Comments
 (0)