Skip to content

Commit

Permalink
fix js writeAt
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Jan 31, 2024
1 parent e5ae3b8 commit 1f11c06
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/hashicorp/go-retryablehttp v0.7.2
github.com/hashicorp/golang-lru/v2 v2.0.1
github.com/herumi/bls-go-binary v1.31.0
github.com/hitenjain14/fasthttp v0.0.0-20240129191709-9e0a59b0bd2c
github.com/hitenjain14/fasthttp v0.0.0-20240131211206-9180af2dd7e0
github.com/influxdata/influxdb v1.8.3
github.com/klauspost/reedsolomon v1.11.8
github.com/lithammer/shortuuid/v3 v3.0.7
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/herumi/bls-go-binary v1.31.0 h1:L1goQ2tMtGgpXCg5AwHAdJQpLs/pfnWWEc3Wog6OhmI=
github.com/herumi/bls-go-binary v1.31.0/go.mod h1:O4Vp1AfR4raRGwFeQpr9X/PQtncEicMoOe6BQt1oX0Y=
github.com/hitenjain14/fasthttp v0.0.0-20240129191709-9e0a59b0bd2c h1:j9okwmdumHG3vLk91JG10ZLQXVHD3zM4Uq6Dlv4zTRQ=
github.com/hitenjain14/fasthttp v0.0.0-20240129191709-9e0a59b0bd2c/go.mod h1:RZMcXy7u4S+E97IXYTe7WHZ3+mCYOh4vys8PkIGZeXk=
github.com/hitenjain14/fasthttp v0.0.0-20240131211206-9180af2dd7e0 h1:wOau/5lP3w3DlozOYbDp6mbSSjcXaEGkWPlgUuEPvY0=
github.com/hitenjain14/fasthttp v0.0.0-20240131211206-9180af2dd7e0/go.mod h1:RZMcXy7u4S+E97IXYTe7WHZ3+mCYOh4vys8PkIGZeXk=
github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao=
github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA=
github.com/holiman/uint256 v1.2.2-0.20230321075855-87b91420868c h1:DZfsyhDK1hnSS5lH8l+JggqzEleHteTYfutAiVlSUM8=
Expand Down
2 changes: 1 addition & 1 deletion wasmsdk/jsbridge/file_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (w *FileWriter) WriteAt(p []byte, offset int64) (int, error) {
options.Set("position", offset)
options.Set("data", uint8Array)
options.Set("size", len(p))
_, err := Await(w.fileHandle.Call("write", options))
_, err := Await(w.writableStream.Call("write", options))
if len(err) > 0 && !err[0].IsNull() {
return 0, errors.New("file_writer: " + err[0].String())
}
Expand Down
1 change: 0 additions & 1 deletion zboxcore/sdk/downloadworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,6 @@ func (req *DownloadRequest) processDownload(ctx context.Context) {
req.statusCallback.InProgress(req.allocationID, remotePathCB, op, int(downloaded), nil)
progressLock.Unlock()
}
logger.Logger.Info("writeDataForBlock", "block", j, "total", total)
}
return nil
})
Expand Down

0 comments on commit 1f11c06

Please sign in to comment.