예제 #1
0
func (self *DockerQueue) Recover(index int) {
	for _, cell := range self.Dockers[index] {
		data.PutDataCell(cell)
	}
	self.Dockers[index] = self.Dockers[index][:0]
	self.Using[index] = false
}
예제 #2
0
func (self *Collector) resetDataDocker() {
	for _, cell := range self.dataDocker {
		data.PutDataCell(cell)
	}
	self.dataDocker = self.dataDocker[:0]
}