MCPcopy
hub / github.com/grpc/grpc-go / resetConnectBackoff

Method resetConnectBackoff

clientconn.go:1671–1677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1669}
1670
1671func (ac *addrConn) resetConnectBackoff() {
1672 ac.mu.Lock()
1673 close(ac.resetBackoff)
1674 ac.backoffIdx = 0
1675 ac.resetBackoff = make(chan struct{})
1676 ac.mu.Unlock()
1677}
1678
1679// getReadyTransport returns the transport if ac's state is READY or nil if not.
1680func (ac *addrConn) getReadyTransport() transport.ClientTransport {

Callers 1

ResetConnectBackoffMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected