Skip to content

Commit

Permalink
refactor(service_test.go): replace grpc.DialContext with grpc.NewClie…
Browse files Browse the repository at this point in the history
…nt for client creation

The change simplifies the creation of a gRPC client by using
grpc.NewClient instead of grpc.DialContext.
  • Loading branch information
cybersiddhu committed May 31, 2024
1 parent db7a131 commit 179f89d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/app/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ func setup(t *testing.T) (content.ContentServiceClient, *require.Assertions) {

return conn, nil
}
conn, err := grpc.DialContext(
context.Background(),
conn, err := grpc.NewClient(
"",
grpc.WithContextDialer(dialer),
grpc.WithTransportCredentials(insecure.NewCredentials()),
Expand Down

0 comments on commit 179f89d

Please sign in to comment.