Skip to content

Commit

Permalink
Bump google.golang.org/grpc to v1.63.2 (#564)
Browse files Browse the repository at this point in the history
Replace usages of grpc.Dial with grpc.NewClient
  • Loading branch information
acrmp committed Apr 15, 2024
1 parent b84f33a commit 4a08f3b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/integration_tests/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func agentClient(port int, testCerts *testhelper.TestCerts) loggregator_v2.Ingre
panic(err)
}

conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)))
conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)))
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/clientpool/v1/pusher_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewPusherFetcher(mc MetricClient, opts ...grpc.DialOption) *PusherFetcher {
}

func (p *PusherFetcher) Fetch(addr string) (io.Closer, plumbing.DopplerIngestor_PusherClient, error) {
conn, err := grpc.Dial(addr, p.opts...)
conn, err := grpc.NewClient(addr, p.opts...)
if err != nil {
return nil, nil, fmt.Errorf("error dialing ingestor stream to %s: %s", addr, err)
}
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/clientpool/v2/sender_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewSenderFetcher(mc MetricClient, opts ...grpc.DialOption) *SenderFetcher {
}

func (p *SenderFetcher) Fetch(addr string) (io.Closer, loggregator_v2.Ingress_BatchSenderClient, error) {
conn, err := grpc.Dial(addr, p.opts...)
conn, err := grpc.NewClient(addr, p.opts...)
if err != nil {
return nil, nil, fmt.Errorf("error dialing ingestor stream to %s: %s", addr, err)
}
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/otelcolclient/otelcolclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type GRPCWriter struct {

// NewGRPCWriter dials the provided gRPC address and returns a *GRPCWriter.
func NewGRPCWriter(addr string, tlsConfig *tls.Config, l *log.Logger) (*GRPCWriter, error) {
cc, err := grpc.Dial(addr, grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)))
cc, err := grpc.NewClient(addr, grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4a08f3b

Please sign in to comment.