diff options
| author | chrislu <chris.lu@gmail.com> | 2022-07-29 01:34:39 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-07-29 01:34:39 -0700 |
| commit | 13b9a52f80854d1bda4101602794540ff9538a70 (patch) | |
| tree | 5d96351ef813c7adc4ab9230cb7661376a095ba2 /unmaintained | |
| parent | be0ec7bc2f99515bd3bd965aa833d864869677c1 (diff) | |
| download | seaweedfs-13b9a52f80854d1bda4101602794540ff9538a70.tar.xz seaweedfs-13b9a52f80854d1bda4101602794540ff9538a70.zip | |
fix deprecated functions
Diffstat (limited to 'unmaintained')
| -rw-r--r-- | unmaintained/load_test/load_test_meta_tail/load_test_meta_tail.go | 4 |
1 files changed, 2 insertions, 2 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 98bb75dff..9cc048cf6 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 @@ -51,7 +51,7 @@ func main() { } func startGenerateMetadata() { - pb.WithFilerClient(false, pb.ServerAddress(*tailFiler), grpc.WithInsecure(), func(client filer_pb.SeaweedFilerClient) error { + pb.WithFilerClient(false, 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) @@ -77,7 +77,7 @@ func startGenerateMetadata() { func startSubscribeMetadata(eachEntryFunc func(event *filer_pb.SubscribeMetadataResponse) error) { - tailErr := pb.FollowMetadata(pb.ServerAddress(*tailFiler), grpc.WithInsecure(), "tail", 0, 0, *dir, nil, 0, 0, 0, eachEntryFunc, pb.TrivialOnError) + tailErr := pb.FollowMetadata(pb.ServerAddress(*tailFiler), grpc.WithTransportCredentials(insecure.NewCredentials()), "tail", 0, 0, *dir, nil, 0, 0, 0, eachEntryFunc, pb.TrivialOnError) if tailErr != nil { fmt.Printf("tail %s: %v\n", *tailFiler, tailErr) |
