func (w *watcher) terminate() error {
	// we use the range to get a semi-random instance
	// and then immediately return so that we only terminate one
	for p := range w.instances {
		w.log.Info("terminating instance on port", p)

		return w.terminateInstance(p)
	}

	return nil
}
// terminate terminates a random instance from the pool
terminate terminates a random instance from the pool
// terminate terminates a random instance from the pool
func (w *watcher) terminate() error {
	for p := range w.instances {
		w.log.Info("terminating instance on port", p)
		return w.terminateInstance(p)
	}
	return nil
}
func ( w * watcher ) terminate ( ) error { for p := range w . instances { w . log . Info ( " " , p ) return w . terminateInstance ( p ) } return nil }
terminate terminates a random instance from the pool
terminate terminates a random instance from the pool
// we use the range to get a semi-random instance // and then immediately return so that we only terminate one