Update go dependencies
This commit is contained in:
parent
a858c549d9
commit
f3bde94d68
643 changed files with 14296 additions and 19354 deletions
36
vendor/google.golang.org/grpc/clientconn.go
generated
vendored
36
vendor/google.golang.org/grpc/clientconn.go
generated
vendored
|
|
@ -869,6 +869,7 @@ func (ac *addrConn) errorf(format string, a ...interface{}) {
|
|||
|
||||
// resetTransport recreates a transport to the address for ac. The old
|
||||
// transport will close itself on error or when the clientconn is closed.
|
||||
//
|
||||
// TODO(bar) make sure all state transitions are valid.
|
||||
func (ac *addrConn) resetTransport() error {
|
||||
ac.mu.Lock()
|
||||
|
|
@ -876,12 +877,6 @@ func (ac *addrConn) resetTransport() error {
|
|||
ac.mu.Unlock()
|
||||
return errConnClosing
|
||||
}
|
||||
ac.state = connectivity.TransientFailure
|
||||
if ac.cc.balancerWrapper != nil {
|
||||
ac.cc.balancerWrapper.handleSubConnStateChange(ac.acbw, ac.state)
|
||||
} else {
|
||||
ac.cc.csMgr.updateState(ac.state)
|
||||
}
|
||||
if ac.ready != nil {
|
||||
close(ac.ready)
|
||||
ac.ready = nil
|
||||
|
|
@ -905,12 +900,14 @@ func (ac *addrConn) resetTransport() error {
|
|||
return errConnClosing
|
||||
}
|
||||
ac.printf("connecting")
|
||||
ac.state = connectivity.Connecting
|
||||
// TODO(bar) remove condition once we always have a balancer.
|
||||
if ac.cc.balancerWrapper != nil {
|
||||
ac.cc.balancerWrapper.handleSubConnStateChange(ac.acbw, ac.state)
|
||||
} else {
|
||||
ac.cc.csMgr.updateState(ac.state)
|
||||
if ac.state != connectivity.Connecting {
|
||||
ac.state = connectivity.Connecting
|
||||
// TODO(bar) remove condition once we always have a balancer.
|
||||
if ac.cc.balancerWrapper != nil {
|
||||
ac.cc.balancerWrapper.handleSubConnStateChange(ac.acbw, ac.state)
|
||||
} else {
|
||||
ac.cc.csMgr.updateState(ac.state)
|
||||
}
|
||||
}
|
||||
// copy ac.addrs in case of race
|
||||
addrsIter := make([]resolver.Address, len(ac.addrs))
|
||||
|
|
@ -1013,6 +1010,21 @@ func (ac *addrConn) transportMonitor() {
|
|||
ac.adjustParams(t.GetGoAwayReason())
|
||||
default:
|
||||
}
|
||||
ac.mu.Lock()
|
||||
if ac.state == connectivity.Shutdown {
|
||||
ac.mu.Unlock()
|
||||
return
|
||||
}
|
||||
// Set connectivity state to TransientFailure before calling
|
||||
// resetTransport. Transition READY->CONNECTING is not valid.
|
||||
ac.state = connectivity.TransientFailure
|
||||
if ac.cc.balancerWrapper != nil {
|
||||
ac.cc.balancerWrapper.handleSubConnStateChange(ac.acbw, ac.state)
|
||||
} else {
|
||||
ac.cc.csMgr.updateState(ac.state)
|
||||
}
|
||||
ac.curAddr = resolver.Address{}
|
||||
ac.mu.Unlock()
|
||||
if err := ac.resetTransport(); err != nil {
|
||||
ac.mu.Lock()
|
||||
ac.printf("transport exiting: %v", err)
|
||||
|
|
|
|||
4
vendor/google.golang.org/grpc/pickfirst_test.go
generated
vendored
4
vendor/google.golang.org/grpc/pickfirst_test.go
generated
vendored
|
|
@ -128,7 +128,7 @@ func TestNewAddressWhileBlockingPickfirst(t *testing.T) {
|
|||
go func() {
|
||||
defer wg.Done()
|
||||
// This RPC blocks until NewAddress is called.
|
||||
Invoke(context.Background(), "/foo/bar", &req, &reply, cc, FailFast(false))
|
||||
Invoke(context.Background(), "/foo/bar", &req, &reply, cc)
|
||||
}()
|
||||
}
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
|
|
@ -165,7 +165,7 @@ func TestCloseWithPendingRPCPickfirst(t *testing.T) {
|
|||
go func() {
|
||||
defer wg.Done()
|
||||
// This RPC blocks until NewAddress is called.
|
||||
Invoke(context.Background(), "/foo/bar", &req, &reply, cc, FailFast(false))
|
||||
Invoke(context.Background(), "/foo/bar", &req, &reply, cc)
|
||||
}()
|
||||
}
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
|
|
|
|||
2
vendor/google.golang.org/grpc/proxy_test.go
generated
vendored
2
vendor/google.golang.org/grpc/proxy_test.go
generated
vendored
|
|
@ -1,3 +1,5 @@
|
|||
// +build !race
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2017 gRPC authors.
|
||||
|
|
|
|||
2
vendor/google.golang.org/grpc/rpc_util.go
generated
vendored
2
vendor/google.golang.org/grpc/rpc_util.go
generated
vendored
|
|
@ -567,6 +567,6 @@ const SupportPackageIsVersion3 = true
|
|||
const SupportPackageIsVersion4 = true
|
||||
|
||||
// Version is the current grpc version.
|
||||
const Version = "1.7.0"
|
||||
const Version = "1.7.2"
|
||||
|
||||
const grpcUA = "grpc-go/" + Version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue