From f240c57f16e89a03be9ca583ab25703421e82e1e Mon Sep 17 00:00:00 2001 From: tnextday Date: Mon, 14 Dec 2015 22:01:30 +0800 Subject: [PATCH] Rename ChunkManifest.GetData to ChunkManifest.Marshal --- go/operation/chunked_file.go | 2 +- go/operation/submit.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/operation/chunked_file.go b/go/operation/chunked_file.go index f8266087b..cb9ac80df 100644 --- a/go/operation/chunked_file.go +++ b/go/operation/chunked_file.go @@ -65,7 +65,7 @@ func LoadChunkManifest(buffer []byte, isGzipped bool) (*ChunkManifest, error) { return &cm, nil } -func (cm *ChunkManifest) GetData() ([]byte, error) { +func (cm *ChunkManifest) Marshal() ([]byte, error) { return json.Marshal(cm) } diff --git a/go/operation/submit.go b/go/operation/submit.go index ac5a3b55f..d996d63f0 100644 --- a/go/operation/submit.go +++ b/go/operation/submit.go @@ -180,7 +180,7 @@ func upload_one_chunk(filename string, reader io.Reader, master, } func upload_chunked_file_manifest(fileUrl string, manifest *ChunkManifest, jwt security.EncodedJwt) error { - buf, e := manifest.GetData() + buf, e := manifest.Marshal() if e != nil { return e }