aboutsummaryrefslogtreecommitdiff
path: root/go/operation/chunked_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/operation/chunked_file.go')
-rw-r--r--go/operation/chunked_file.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/go/operation/chunked_file.go b/go/operation/chunked_file.go
index 0492d39a7..0e455e93a 100644
--- a/go/operation/chunked_file.go
+++ b/go/operation/chunked_file.go
@@ -22,9 +22,9 @@ var (
)
type ChunkInfo struct {
- Fid string `json:"fid,omitempty"`
- Offset int64 `json:"offset,omitempty"`
- Size int64 `json:"size,omitempty"`
+ Fid string `json:"fid"`
+ Offset int64 `json:"offset"`
+ Size int64 `json:"size"`
}
type ChunkList []*ChunkInfo
@@ -52,7 +52,7 @@ func (s ChunkList) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func LoadChunkedManifest(buffer []byte) (*ChunkManifest, error) {
cm := ChunkManifest{}
- if e := json.Unmarshal(buffer, cm); e != nil {
+ if e := json.Unmarshal(buffer, &cm); e != nil {
return nil, e
}
sort.Sort(cm.Chunks)