mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Rename ChunkManifest.GetData to ChunkManifest.Marshal
This commit is contained in:
parent
82e6d67ccc
commit
f240c57f16
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue