Skip to content

Commit

Permalink
chore(backend): updated deprecated grpc func (#11603)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Dowler <[email protected]>
  • Loading branch information
dandawg authored Feb 11, 2025
1 parent 6a13f4b commit 65d1d79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/v2/cacheutils/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"

"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/types/known/structpb"

Expand Down Expand Up @@ -114,7 +115,9 @@ type Client struct {
func NewClient() (*Client, error) {
cacheEndPoint := cacheDefaultEndpoint()
glog.Infof("Connecting to cache endpoint %s", cacheEndPoint)
conn, err := grpc.Dial(cacheEndPoint, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxClientGRPCMessageSize)), grpc.WithInsecure())
conn, err := grpc.Dial(cacheEndPoint,
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxClientGRPCMessageSize)),
grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
return nil, fmt.Errorf("metadata.NewClient() failed: %w", err)
}
Expand Down

0 comments on commit 65d1d79

Please sign in to comment.