Skip to content

Commit

Permalink
grpc: fix deprecations
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cragun <[email protected]>
  • Loading branch information
ryancragun committed May 29, 2024
1 parent 0c5f9dd commit afa395a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func (c *Connection) Trace(msg string, args ...any) {
func Connect(ctx context.Context, opts ...Opt) (*Connection, error) {
c := &Connection{
DialOpts: []grpc.DialOption{
grpc.WithBlock(),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithKeepaliveParams(
keepalive.ClientParameters{
Expand All @@ -129,7 +128,7 @@ func Connect(ctx context.Context, opts ...Opt) (*Connection, error) {
}

c.Trace("connecting to server", "addr", c.Addr.String())
conn, err := grpc.DialContext(ctx, c.Addr.String(), c.DialOpts...)
conn, err := grpc.NewClient(c.Addr.String(), c.DialOpts...)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit afa395a

Please sign in to comment.