-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup: replace dial with newclient #7970
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7970 +/- ##
==========================================
+ Coverage 82.05% 82.15% +0.10%
==========================================
Files 381 381
Lines 38539 38542 +3
==========================================
+ Hits 31622 31665 +43
+ Misses 5602 5567 -35
+ Partials 1315 1310 -5
|
interop/alts/client/client.go
Outdated
if err != nil { | ||
logger.Fatalf("gRPC Client: failed to dial the server at %v: %v", *serverAddr, err) | ||
logger.Fatalf("gRPC Client: NewClient() failed %v: %v", *serverAddr, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.Fatalf("gRPC Client: NewClient() failed %v: %v", *serverAddr, err) | |
logger.Fatalf("gRPC Client: failed to create a client for server at %q: %v", *serverAddr, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
interop/client/client.go
Outdated
if err != nil { | ||
logger.Fatalf("Fail to dial: %v", err) | ||
logger.Fatalf("NewClient() failed: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.Fatalf("NewClient() failed: %v", err) | |
logger.Fatalf("Failed to create a client: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if err != nil { | ||
errorLog.Fatalf("Fail to dial: %v", err) | ||
errorLog.Fatalf("NewClient() failed: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errorLog.Fatalf("NewClient() failed: %v", err) | |
errorLog.Fatalf("Failed to create a client: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if err != nil { | ||
logger.Fatalf("Fail to dial: %v", err) | ||
logger.Fatalf("NewClient() failed: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.Fatalf("NewClient() failed: %v", err) | |
logger.Fatalf("Failed to create a client: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if err != nil { | ||
log.Fatalf("Fail to dial: %v", err) | ||
log.Fatalf("NewClient() failed: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Fatalf("NewClient() failed: %v", err) | |
log.Fatalf("Failed to create a client: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
interop/xds/client/client.go
Outdated
if err != nil { | ||
logger.Fatalf("Fail to dial: %v", err) | ||
logger.Fatalf("NewClient() failed: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.Fatalf("NewClient() failed: %v", err) | |
logger.Fatalf("Failed to create a client: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
interop/xds_federation/client.go
Outdated
if err != nil { | ||
logger.Fatalf("Fail to dial %v: %v", uris[i], err) | ||
logger.Fatalf("NewClient() failed %v: %v", uris[i], err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.Fatalf("NewClient() failed %v: %v", uris[i], err) | |
logger.Fatalf("Failed to create a client for server %q: %v", uris[i], err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
profiling/cmd/remote.go
Outdated
if err != nil { | ||
logger.Errorf("cannot dial %s: %v", *flagAddress, err) | ||
logger.Errorf("NewClient() failed %s: %v", *flagAddress, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.Errorf("NewClient() failed %s: %v", *flagAddress, err) | |
logger.Fatalf("Failed to create a client for server %q: %v", *flagAddress, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
resolver/manual/manual.go
Outdated
@@ -110,7 +110,7 @@ func (r *Resolver) UpdateState(s resolver.State) { | |||
defer r.mu.Unlock() | |||
var err error | |||
if r.CC == nil { | |||
panic("cannot update state as grpc.Dial with resolver has not been called") | |||
panic("cannot update state as grpc.NewClient with resolver has not been called") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cannot update state as channel has not exited IDLE state
Update throughout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -260,10 +260,11 @@ func (lb *lbBalancer) newRemoteBalancerCCWrapper() error { | |||
// The grpclb server addresses will set field ServerName, and creds will | |||
// receive ServerName as authority. | |||
target := lb.manualResolver.Scheme() + ":///grpclb.subClientConn" | |||
cc, err := grpc.Dial(target, dopts...) | |||
cc, err := grpc.NewClient(target, dopts...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partially address: #7049
RELEASE NOTES: None