aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/submit.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-06-14 11:42:05 -0700
committerchrislu <chris.lu@gmail.com>2024-06-14 11:42:05 -0700
commit32dbb6a2ceb86a44d7879bdb506ab759d59f056b (patch)
tree94c1d9cd5c086b437c4df2847b1a42b6432b535b /weed/operation/submit.go
parent70b31e3a28b8169289bb9c55052355a3daacfd12 (diff)
parent8aae82dd71735df1cd915a47a9b9d453d393adf6 (diff)
downloadseaweedfs-32dbb6a2ceb86a44d7879bdb506ab759d59f056b.tar.xz
seaweedfs-32dbb6a2ceb86a44d7879bdb506ab759d59f056b.zip
Merge branch 'master' into mq
Diffstat (limited to 'weed/operation/submit.go')
-rw-r--r--weed/operation/submit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/operation/submit.go b/weed/operation/submit.go
index 3eb38c31e..57bd81b14 100644
--- a/weed/operation/submit.go
+++ b/weed/operation/submit.go
@@ -1,6 +1,7 @@
package operation
import (
+ "context"
"github.com/seaweedfs/seaweedfs/weed/pb"
"io"
"mime"
@@ -40,7 +41,7 @@ type SubmitResult struct {
Error string `json:"error,omitempty"`
}
-type GetMasterFn func() pb.ServerAddress
+type GetMasterFn func(ctx context.Context) pb.ServerAddress
func SubmitFiles(masterFn GetMasterFn, grpcDialOption grpc.DialOption, files []FilePart, replication string, collection string, dataCenter string, ttl string, diskType string, maxMB int, usePublicUrl bool) ([]SubmitResult, error) {
results := make([]SubmitResult, len(files))