Skip to content

Commit

Permalink
don't use deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pankona committed Jan 27, 2022
1 parent 6cf10c5 commit b18045b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/client.go
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/pankona/hashira/service"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)

// Client is a hashira client structure
Expand All @@ -15,7 +16,7 @@ type Client struct {
}

func (c *Client) withClient(f func(service.HashiraClient) error) error {
conn, err := grpc.Dial(c.Address, grpc.WithInsecure())
conn, err := grpc.Dial(c.Address, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return errors.New("failed to Dial: " + err.Error())
}
Expand Down

0 comments on commit b18045b

Please sign in to comment.