mirror of
https://github.com/anomalyco/opencode-sdk-go.git
synced 2026-04-26 11:40:53 +00:00
feat(client): expand max streaming buffer size
This commit is contained in:
parent
391c482148
commit
76303e5106
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ func NewDecoder(res *http.Response) Decoder {
|
|||
decoder = t(res.Body)
|
||||
} else {
|
||||
scn := bufio.NewScanner(res.Body)
|
||||
scn.Buffer(nil, bufio.MaxScanTokenSize<<4)
|
||||
scn.Buffer(nil, bufio.MaxScanTokenSize<<9)
|
||||
decoder = &eventStreamDecoder{rc: res.Body, scn: scn}
|
||||
}
|
||||
return decoder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue