aboutsummaryrefslogtreecommitdiff
path: root/weed/command/benchmark.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/benchmark.go
parentb9e138713c8e2f53cf96132b5ff077ded67c5c20 (diff)
downloadseaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.tar.xz
seaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.zip
periodic scripts exeuction from leader master
Diffstat (limited to 'weed/command/benchmark.go')
-rw-r--r--weed/command/benchmark.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go
index 6c64c4591..dd0fdb88e 100644
--- a/weed/command/benchmark.go
+++ b/weed/command/benchmark.go
@@ -4,9 +4,6 @@ import (
"bufio"
"context"
"fmt"
- "github.com/chrislusf/seaweedfs/weed/server"
- "github.com/spf13/viper"
- "google.golang.org/grpc"
"io"
"math"
"math/rand"
@@ -18,6 +15,9 @@ import (
"sync"
"time"
+ "github.com/spf13/viper"
+ "google.golang.org/grpc"
+
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/security"
@@ -108,7 +108,7 @@ var (
func runBenchmark(cmd *Command, args []string) bool {
- weed_server.LoadConfiguration("security", false)
+ util.LoadConfiguration("security", false)
b.grpcDialOption = security.LoadClientTLS(viper.Sub("grpc"), "client")
fmt.Printf("This is SeaweedFS version %s %s %s\n", util.VERSION, runtime.GOOS, runtime.GOARCH)