mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
refactor: use writeStream for downloading skills to avoid buffering
This commit is contained in:
parent
f380c757ff
commit
3871578db6
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ export namespace Discovery {
|
|||
log.error("failed to download", { url, status: response.status })
|
||||
return false
|
||||
}
|
||||
await Filesystem.write(dest, await response.text())
|
||||
if (response.body) await Filesystem.writeStream(dest, response.body)
|
||||
return true
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue