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

Method startFirstPassLocked

balancer/pickfirst/pickfirst.go:398–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

396}
397
398func (b *pickfirstBalancer) startFirstPassLocked() {
399 b.firstPass = true
400 b.numTF = 0
401 // Reset the connection attempt record for existing SubConns.
402 for _, sd := range b.subConns.All() {
403 sd.connectionFailedInFirstPass = false
404 }
405 b.requestConnectionLocked()
406}
407
408func (b *pickfirstBalancer) closeSubConnsLocked() {
409 for _, sd := range b.subConns.All() {

Callers 2

UpdateClientConnStateMethod · 0.95
ExitIdleMethod · 0.95

Calls 2

AllMethod · 0.45

Tested by

no test coverage detected