diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-12-30 15:46:07 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-12-30 15:46:07 -0800 |
| commit | 3433accb1bdb1f311ecba4b87740e853cdfcf93d (patch) | |
| tree | 58144a48ca1c74aa1af95ef7e4f2378bf3e58ef4 /weed/operation/submit.go | |
| parent | d1a05d261af33b2dd6eb3e1f3813dd054fb40943 (diff) | |
| download | seaweedfs-3433accb1bdb1f311ecba4b87740e853cdfcf93d.tar.xz seaweedfs-3433accb1bdb1f311ecba4b87740e853cdfcf93d.zip | |
weed upload: add TTL
Diffstat (limited to 'weed/operation/submit.go')
| -rw-r--r-- | weed/operation/submit.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/operation/submit.go b/weed/operation/submit.go index 25843c892..c8f979d83 100644 --- a/weed/operation/submit.go +++ b/weed/operation/submit.go @@ -69,6 +69,7 @@ func SubmitFiles(master string, grpcDialOption grpc.DialOption, files []FilePart file.Replication = replication file.Collection = collection file.DataCenter = dataCenter + file.Ttl = ttl results[index].Size, err = file.Upload(maxMB, master, usePublicUrl, ret.Auth, grpcDialOption) if err != nil { results[index].Error = err.Error() |
