aboutsummaryrefslogtreecommitdiff
path: root/weed/command/benchmark.go
diff options
context:
space:
mode:
authorNico D'Cotta <45274424+Cottand@users.noreply.github.com>2023-08-24 16:08:56 +0200
committerGitHub <noreply@github.com>2023-08-24 07:08:56 -0700
commit796b7508f33916f7fa734e3df2ceea9a80415ade (patch)
tree4bc3913d93e1e328fd8f7275b11452e61d8175d2 /weed/command/benchmark.go
parent5251b4d50ea55c5f0a2fbc60206785bf80775bac (diff)
downloadseaweedfs-796b7508f33916f7fa734e3df2ceea9a80415ade.tar.xz
seaweedfs-796b7508f33916f7fa734e3df2ceea9a80415ade.zip
Implement SRV lookups for filer (#4767)
Diffstat (limited to 'weed/command/benchmark.go')
-rw-r--r--weed/command/benchmark.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/benchmark.go b/weed/command/benchmark.go
index 7f132892e..7f9a23cf8 100644
--- a/weed/command/benchmark.go
+++ b/weed/command/benchmark.go
@@ -127,7 +127,7 @@ func runBenchmark(cmd *Command, args []string) bool {
defer pprof.StopCPUProfile()
}
- b.masterClient = wdclient.NewMasterClient(b.grpcDialOption, "", "client", "", "", "", pb.ServerAddresses(*b.masters).ToAddressMap())
+ b.masterClient = wdclient.NewMasterClient(b.grpcDialOption, "", "client", "", "", "", *pb.ServerAddresses(*b.masters).ToServiceDiscovery())
go b.masterClient.KeepConnectedToMaster()
b.masterClient.WaitUntilConnected()