Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Lange (0.12 sec)

  1. cmd/endpoint.go

    // Add add pool endpoints
    func (l *EndpointServerPools) Add(zeps PoolEndpoints) error {
    	existSet := set.NewStringSet()
    	for _, zep := range *l {
    		for _, ep := range zep.Endpoints {
    			existSet.Add(ep.String())
    		}
    	}
    	// Validate if there are duplicate endpoints across serverPools
    	for _, ep := range zeps.Endpoints {
    		if existSet.Contains(ep.String()) {
    			return fmt.Errorf("duplicate endpoints found")
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
Back to top