Skip to content

Commit

Permalink
update grpc package
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Mahmoud <[email protected]>
  • Loading branch information
msherif1234 committed Jun 3, 2024
1 parent be97fce commit 0be09fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/conn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

func CreateConnection(ctx context.Context, creds credentials.TransportCredentials) (*grpc.ClientConn, error) {
addr := fmt.Sprintf("unix://%s", internal.DefaultPath)
conn, err := grpc.DialContext(ctx, addr, grpc.WithTransportCredentials(creds), grpc.WithBlock())
conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(creds))

Check warning on line 32 in internal/conn/conn.go

View check run for this annotation

Codecov / codecov/patch

internal/conn/conn.go#L32

Added line #L32 was not covered by tests
if err != nil {
return nil, fmt.Errorf("unable to establish connection to %s: %w", addr, err)
}
Expand Down

0 comments on commit 0be09fe

Please sign in to comment.