Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RoundRobinLB (0.43 sec)

  1. pkg/test/loadbalancersim/loadbalancer/roundrobin.go

    		}
    	}
    
    	// Shuffle the connections.
    	rand.Shuffle(len(lbConns), func(i, j int) {
    		lbConns[i], lbConns[j] = lbConns[j], lbConns[i]
    	})
    
    	return &roundRobin{
    		weightedConnections: newLBConnection("RoundRobinLB", lbConns),
    	}
    }
    
    type roundRobin struct {
    	*weightedConnections
    
    	next      int
    	nextMutex sync.Mutex
    }
    
    func (lb *roundRobin) Request(onDone func()) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top