Skip to content

Commit

Permalink
chore: Update grpc.Dial to grpc.NewClient in apiclient.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjornstad committed Jul 5, 2024
1 parent 75933b9 commit 93213e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/test/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func (f *GRPCServer) ClientOptions() []option.ClientOption {
return f.conn.Dial()
})),
option.WithGRPCDialOption(grpc.WithTransportCredentials(insecure.NewCredentials())),
option.WithGRPCDialOption(grpc.WithBlock()),
option.WithoutAuthentication(),
}
}
2 changes: 1 addition & 1 deletion pkg/apiclient/apiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type APIClient struct {
}

func New(target string, opts ...grpc.DialOption) (*APIClient, error) {
gclient, err := grpc.Dial(target, opts...)
gclient, err := grpc.NewClient(target, opts...)
if err != nil {
panic("Failed to connect to provider " + err.Error())
}
Expand Down

0 comments on commit 93213e5

Please sign in to comment.