diff options
| author | chrislu <chris.lu@gmail.com> | 2022-03-26 13:33:17 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-03-26 13:33:17 -0700 |
| commit | 21e08986317995a89274b5fc7dad80a42006bc16 (patch) | |
| tree | ccc6f6a1c00282011697e7a7f004cfd78ec1362f /weed/command/benchmark.go | |
| parent | 4ba7127ab1bf8fa045d623d0c6293a083f209ad7 (diff) | |
| download | seaweedfs-21e08986317995a89274b5fc7dad80a42006bc16.tar.xz seaweedfs-21e08986317995a89274b5fc7dad80a42006bc16.zip | |
refactor: change masters from a slice to a map
Diffstat (limited to 'weed/command/benchmark.go')
| -rw-r--r-- | weed/command/benchmark.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go index af5919adf..7091463cc 100644 --- a/weed/command/benchmark.go +++ b/weed/command/benchmark.go @@ -129,7 +129,7 @@ func runBenchmark(cmd *Command, args []string) bool { defer pprof.StopCPUProfile() } - b.masterClient = wdclient.NewMasterClient(b.grpcDialOption, "client", "", "", pb.ServerAddresses(*b.masters).ToAddresses()) + b.masterClient = wdclient.NewMasterClient(b.grpcDialOption, "client", "", "", pb.ServerAddresses(*b.masters).ToAddressMap()) go b.masterClient.KeepConnectedToMaster() b.masterClient.WaitUntilConnected() |
