From 318bc1bb3efe881c42302dc771d66640d025aa5f Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Tue, 30 Apr 2024 17:18:15 -0700 Subject: [PATCH] update grpc opts --- lint/lint.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lint/lint.go b/lint/lint.go index 8d1ac764..4091887b 100644 --- a/lint/lint.go +++ b/lint/lint.go @@ -22,9 +22,6 @@ import ( "context" "encoding/csv" "fmt" - "golang.org/x/exp/maps" - "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" "io" "log" "os" @@ -32,6 +29,10 @@ import ( "strings" "sync" + "golang.org/x/exp/maps" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" + "github.com/onflow/cadence/runtime/common" "github.com/onflow/cadence/runtime/pretty" "github.com/onflow/cadence/tools/analysis" @@ -175,8 +176,10 @@ func newFlowAccess(networkName string) (*grpcAccess.Client, error) { return grpcAccess.NewClient( network, - grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithDefaultCallOptions(), + grpcAccess.WithGRPCDialOptions( + grpc.WithTransportCredentials(insecure.NewCredentials()), + grpc.WithDefaultCallOptions(), + ), ) }