aboutsummaryrefslogtreecommitdiff
path: root/weed/command/upload.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-05 01:30:24 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-05 01:30:24 -0700
commitede876cfdb0116557dd197a7951957dab6745c24 (patch)
tree50bab90cbf757bb0ad6b3239ed938dfd8d55874e /weed/command/upload.go
parentb9e138713c8e2f53cf96132b5ff077ded67c5c20 (diff)
downloadseaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.tar.xz
seaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.zip
periodic scripts exeuction from leader master
Diffstat (limited to 'weed/command/upload.go')
-rw-r--r--weed/command/upload.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/weed/command/upload.go b/weed/command/upload.go
index 1271725ba..25e938d9b 100644
--- a/weed/command/upload.go
+++ b/weed/command/upload.go
@@ -3,12 +3,13 @@ package command
import (
"encoding/json"
"fmt"
- "github.com/chrislusf/seaweedfs/weed/security"
- "github.com/chrislusf/seaweedfs/weed/server"
- "github.com/spf13/viper"
"os"
"path/filepath"
+ "github.com/chrislusf/seaweedfs/weed/security"
+ "github.com/chrislusf/seaweedfs/weed/util"
+ "github.com/spf13/viper"
+
"github.com/chrislusf/seaweedfs/weed/operation"
)
@@ -61,7 +62,7 @@ var cmdUpload = &Command{
func runUpload(cmd *Command, args []string) bool {
- weed_server.LoadConfiguration("security", false)
+ util.LoadConfiguration("security", false)
grpcDialOption := security.LoadClientTLS(viper.Sub("grpc"), "client")
if len(args) == 0 {