// totalConns returns the total number of active connections
// to this upstream (across all peers).
totalConns returns the total number of active connections
to this upstream (across all peers).
// totalConns returns the total number of active connections // to this upstream ( across all peers ) .
func (u *Upstream) totalConns() int {
	var totalConns int
	for _, p := range u.peers {
		totalConns += p.getNumConns()
	}
	return totalConns
}
func ( u * Upstream ) totalConns ( ) int { var totalConns int for _ , p := range u . peers { totalConns += p . getNumConns ( ) } return totalConns }
totalConns returns the total number of active connections
to this upstream (across all peers).
totalConns returns the total number of active connections to this upstream ( across all peers ) .