From 813765caaf3bd7d3e852f22208fefc485cc2a243 Mon Sep 17 00:00:00 2001 From: cpanato Date: Mon, 8 Apr 2024 09:48:28 +0200 Subject: [PATCH] update deprecated method Signed-off-by: cpanato --- cmd/trillian/createtree/main.go | 2 +- cmd/trillian/updatetree/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/trillian/createtree/main.go b/cmd/trillian/createtree/main.go index 168e7674f..42df9e33c 100644 --- a/cmd/trillian/createtree/main.go +++ b/cmd/trillian/createtree/main.go @@ -101,7 +101,7 @@ func createTree(ctx context.Context) (*trillian.Tree, error) { return nil, fmt.Errorf("failed to determine dial options: %w", err) } - conn, err := grpc.Dial(*adminServerAddr, dialOpts...) + conn, err := grpc.NewClient(*adminServerAddr, dialOpts...) if err != nil { return nil, fmt.Errorf("failed to dial: %w", err) } diff --git a/cmd/trillian/updatetree/main.go b/cmd/trillian/updatetree/main.go index 392f2434a..5a2d16a30 100644 --- a/cmd/trillian/updatetree/main.go +++ b/cmd/trillian/updatetree/main.go @@ -94,7 +94,7 @@ func updateTree(ctx context.Context) (*trillian.Tree, error) { return nil, fmt.Errorf("failed to determine dial options: %w", err) } - conn, err := grpc.Dial(*adminServerAddr, dialOpts...) + conn, err := grpc.NewClient(*adminServerAddr, dialOpts...) if err != nil { return nil, fmt.Errorf("failed to dial %v: %w", *adminServerAddr, err) }