Skip to content

Commit

Permalink
feat: 修改zstd解压方式
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jan 16, 2023
1 parent 5325b3a commit 488dccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export class Cluster {
responseType: 'buffer',
cache: this.requestCache,
})
const {ZstdStream} = await ZstdInit()
const decompressed = ZstdStream.decompress(res.body)
const {ZstdSimple} = await ZstdInit()
const decompressed = ZstdSimple.decompress(res.body)
return {
files: FileListSchema.fromBuffer(Buffer.from(decompressed)),
}
Expand Down

0 comments on commit 488dccb

Please sign in to comment.