Skip to content

Commit

Permalink
remove path header, fix ws tag (#1223)
Browse files Browse the repository at this point in the history
* remove path header, fix ws tag

* fixed broken build

---------

Co-authored-by: din-mukhammed <[email protected]>
  • Loading branch information
dabasov and din-mukhammed authored Sep 14, 2023
1 parent 6c6e208 commit f9dc5b1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
5 changes: 2 additions & 3 deletions wasmsdk/blobber.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,9 @@ type BulkUploadOption struct {

ThumbnailBytes jsbridge.Bytes `json:"thumbnailBytes,omitempty"`
Encrypt bool `json:"encrypt,omitempty"`
Webstreaming bool `json:"webstreaming,omitempty"`
IsWebstreaming bool `json:"webstreaming,omitempty"`
IsUpdate bool `json:"isUpdate,omitempty"`
IsRepair bool `json:"isRepair,omitempty"`
IsWebstreaming bool `json:"isWebstreaming,omitempty"`

NumBlocks int `json:"numBlocks,omitempty"`
FileSize int64 `json:"fileSize,omitempty"`
Expand Down Expand Up @@ -569,7 +568,7 @@ func bulkUpload(jsonBulkUploadOptions string) ([]BulkUploadResult, error) {
o.ReadChunkFuncName,
o.FileSize,
o.ThumbnailBytes.Buffer,
o.Webstreaming,
o.IsWebstreaming,
o.Encrypt,
o.IsUpdate,
o.IsRepair,
Expand Down
1 change: 0 additions & 1 deletion zboxcore/sdk/blockdownloadworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ func (req *BlockDownloadRequest) downloadBlobberBlock() {
}

header := &DownloadRequestHeader{}
header.Path = req.remotefilepath
header.PathHash = req.remotefilepathhash
header.BlockNum = req.blockNum
header.NumBlocks = req.numBlocks
Expand Down
5 changes: 0 additions & 5 deletions zboxcore/sdk/download_reqeust_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
type DownloadRequestHeader struct {
ClientID string
PathHash string
Path string
BlockNum int64
NumBlocks int64
ReadMarker []byte
Expand All @@ -22,10 +21,6 @@ type DownloadRequestHeader struct {

// ToHeader update header
func (h *DownloadRequestHeader) ToHeader(req *http.Request) {
if h.Path != "" {
req.Header.Set("X-Path", h.Path)
}

if h.PathHash != "" {
req.Header.Set("X-Path-Hash", h.PathHash)
}
Expand Down
1 change: 0 additions & 1 deletion zboxcore/sdk/downloadworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ func (req *DownloadRequest) attemptSubmitReadMarker(blobber *blockchain.StorageN
}

header := &DownloadRequestHeader{
Path: req.remotefilepath,
PathHash: req.remotefilepathhash,
ReadMarker: rmData,
ConnectionID: req.connectionID,
Expand Down

0 comments on commit f9dc5b1

Please sign in to comment.