Skip to content

Commit

Permalink
update deprecated method
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <[email protected]>
  • Loading branch information
cpanato committed Apr 8, 2024
1 parent 725ded7 commit 813765c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/trillian/createtree/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/trillian/updatetree/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 813765c

Please sign in to comment.