Revert "GCE: Allow nodes to exceed target pool maximums"

This reverts commit faf0c44429.
This commit is contained in:
Zach Loafman
2016-06-13 09:49:10 -07:00
parent dd4dae4a57
commit ebc65f1dd3
4 changed files with 26 additions and 211 deletions

View File

@@ -81,19 +81,3 @@ func String(length int) string {
}
return string(b)
}
// A type that satisfies the rand.Shufflable interface can be shuffled
// by Shuffle. Any sort.Interface will satisfy this interface.
type Shufflable interface {
Len() int
Swap(i, j int)
}
func Shuffle(data Shufflable) {
rng.Lock()
defer rng.Unlock()
for i := 0; i < data.Len(); i++ {
j := rng.rand.Intn(i + 1)
data.Swap(i, j)
}
}