aboutsummaryrefslogtreecommitdiff
path: root/weed/command/benchmark.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-12 21:40:33 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-12 21:40:33 -0700
commit5a0f92423eb4f89d35b245b1913eb7ba60436742 (patch)
tree433a3ce97451c9800089b8d87abc09480c0dcf78 /weed/command/benchmark.go
parent6238644c35fc5dafcc4eb1722b3d5c9b92c0b031 (diff)
downloadseaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.tar.xz
seaweedfs-5a0f92423eb4f89d35b245b1913eb7ba60436742.zip
use grpc and jwt
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 4fedb55f1..f0c8f6139 100644
--- a/weed/command/benchmark.go
+++ b/weed/command/benchmark.go
@@ -212,7 +212,7 @@ func writeFiles(idChan chan int, fileIdLineChan chan string, s *stat) {
}
var jwtAuthorization security.EncodedJwt
if isSecure {
- jwtAuthorization = operation.LookupJwt(b.masterClient.GetMaster(), df.fp.Fid)
+ jwtAuthorization = operation.LookupJwt(b.masterClient.GetMaster(), b.grpcDialOption, df.fp.Fid)
}
if e := util.Delete(fmt.Sprintf("http://%s/%s", df.fp.Server, df.fp.Fid), string(jwtAuthorization)); e == nil {
s.completed++