mirror of https://github.com/grpc/grpc-go.git
err := styple nits
This commit is contained in:
parent
8694dc4d77
commit
8a32815cd1
|
|
@ -89,8 +89,7 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) {
|
|||
for _, opt := range opts {
|
||||
opt(&cc.dopts)
|
||||
}
|
||||
err := cc.resetTransport(false)
|
||||
if err != nil {
|
||||
if err := cc.resetTransport(false); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cc.shutdownChan = make(chan struct{})
|
||||
|
|
@ -163,8 +162,7 @@ func (cc *ClientConn) transportMonitor() {
|
|||
case <-cc.shutdownChan:
|
||||
return
|
||||
case <-cc.transport.Error():
|
||||
err := cc.resetTransport(true)
|
||||
if err != nil {
|
||||
if err := cc.resetTransport(true); err != nil {
|
||||
// The channel is closing.
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue