Skip to content

Commit

Permalink
Replace grpc.NewClient with grpc.Dial (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
lootag authored Jan 27, 2025
1 parent dd2413d commit 91fa8d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
linters:
enable:
- revive
disable:
- staticcheck

issues:
include:
Expand Down
3 changes: 2 additions & 1 deletion go/callPropertiesCreator.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ func createCallOptions() []grpc.CallOption {
}

func createSecureConnection(targetURL string) (*grpc.ClientConn, error) {
return grpc.NewClient(targetURL,
// We cannot use grpc.NewClient because it doesn't work behind a proxy: https://github.com/grpc/grpc-go/releases/tag/v1.69.0
return grpc.Dial(targetURL,
grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{})))
}

Expand Down

0 comments on commit 91fa8d2

Please sign in to comment.