Skip to content

Commit

Permalink
remove path header, fix ws tag
Browse files Browse the repository at this point in the history
  • Loading branch information
din-mukhammed committed Sep 12, 2023
1 parent 1c9f143 commit 2d30e8e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions wasmsdk/blobber.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,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
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 2d30e8e

Please sign in to comment.