Skip to content

Commit

Permalink
fix: forward error and close for bedrock decoder (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjp20 authored Dec 1, 2024
1 parent 9fb231b commit 5f6f6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bedrock/bedrock.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ type eventstreamDecoder struct {
}

func (e *eventstreamDecoder) Close() error {
return nil
return e.rc.Close()
}

func (e *eventstreamDecoder) Err() error {
return nil
return e.err
}

func (e *eventstreamDecoder) Next() bool {
Expand Down

0 comments on commit 5f6f6fd

Please sign in to comment.