agent/acs/handler/attach_eni_handler.go
func (attachENIHandler *attachENIHandler) handleMessages() {
	for {
		select {
		case message := <-attachENIHandler.messageBuffer:
			if err := attachENIHandler.handleSingleMessage(message); err != nil {
				seelog.Warnf("Unable to handle ENI Attachment message [%s]: %v", message.String(), err)
			}
		case <-attachENIHandler.ctx.Done():
			return
		}
	}
}
func (attachENIHandler *attachENIHandler) handleMessages() {
	for {
		select {
		case message := <-attachENIHandler.messageBuffer:
			if err := attachENIHandler.handleSingleMessage(message); err != nil {
				seelog.Warnf("Unable to handle ENI Attachment message [%s]: %v", message.String(), err)
			}
		case <-attachENIHandler.ctx.Done():
			return
		}
	}
}
func ( attachENIHandler * attachENIHandler ) handleMessages ( ) { for { select { case message := <- attachENIHandler . messageBuffer : if err := attachENIHandler . handleSingleMessage ( message ) ; err != nil { seelog . Warnf ( " " , message . String ( ) , err ) } case <- attachENIHandler . ctx . Done ( ) : return } } }
// handleMessages handles each message one at a time
handleMessages handles each message one at a time