add some more comments
This commit is contained in:
@ -144,6 +144,7 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) {
|
|||||||
// Start to monitor the error status of transport.
|
// Start to monitor the error status of transport.
|
||||||
go cc.transportMonitor()
|
go cc.transportMonitor()
|
||||||
} else {
|
} else {
|
||||||
|
// Start a goroutine connecting to the server asynchronously.
|
||||||
go func() {
|
go func() {
|
||||||
if err := cc.resetTransport(false); err != nil {
|
if err := cc.resetTransport(false); err != nil {
|
||||||
grpclog.Printf("Failed to dial %s: %v; please retry.", target, err)
|
grpclog.Printf("Failed to dial %s: %v; please retry.", target, err)
|
||||||
|
Reference in New Issue
Block a user