diff options
| author | chrislu <chris.lu@gmail.com> | 2023-01-20 01:48:12 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-01-20 01:48:12 -0800 |
| commit | 81fdf3651b1f60642fc15bd2b55ed0bd31afac15 (patch) | |
| tree | 19129015db907153d6aa89058c621e2bf93a6bae /unmaintained | |
| parent | b04865974905c2b31eb23b966df6386172e5ba50 (diff) | |
| download | seaweedfs-81fdf3651b1f60642fc15bd2b55ed0bd31afac15.tar.xz seaweedfs-81fdf3651b1f60642fc15bd2b55ed0bd31afac15.zip | |
grpc connection to filer add sw-client-id header
Diffstat (limited to 'unmaintained')
| -rw-r--r-- | unmaintained/load_test/load_test_meta_tail/load_test_meta_tail.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unmaintained/load_test/load_test_meta_tail/load_test_meta_tail.go b/unmaintained/load_test/load_test_meta_tail/load_test_meta_tail.go index 06e47c113..762af2088 100644 --- a/unmaintained/load_test/load_test_meta_tail/load_test_meta_tail.go +++ b/unmaintained/load_test/load_test_meta_tail/load_test_meta_tail.go @@ -6,6 +6,7 @@ import ( "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/pb" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" + "github.com/seaweedfs/seaweedfs/weed/util" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" "strconv" @@ -52,7 +53,7 @@ func main() { } func startGenerateMetadata() { - pb.WithFilerClient(false, pb.ServerAddress(*tailFiler), grpc.WithTransportCredentials(insecure.NewCredentials()), func(client filer_pb.SeaweedFilerClient) error { + pb.WithFilerClient(false, util.RandomInt32(), pb.ServerAddress(*tailFiler), grpc.WithTransportCredentials(insecure.NewCredentials()), func(client filer_pb.SeaweedFilerClient) error { for i := 0; i < *n; i++ { name := fmt.Sprintf("file%d", i) |
