func (mexset *messageExchangeSet) deleteExchange(msgID uint32) (found, timedOut bool) {
	if _, found := mexset.exchanges[msgID]; found {
		delete(mexset.exchanges, msgID)
		return true, false
	}

	if _, expired := mexset.expiredExchanges[msgID]; expired {
		delete(mexset.expiredExchanges, msgID)
		return false, true
	}

	return false, false
}
func (mexset *messageExchangeSet) deleteExchange(msgID uint32) (found, timedOut bool) {
	if _, found := mexset.exchanges[msgID]; found {
		delete(mexset.exchanges, msgID)
		return true, false
	}

	if _, expired := mexset.expiredExchanges[msgID]; expired {
		delete(mexset.expiredExchanges, msgID)
		return false, true
	}

	return false, false
}
func ( mexset * messageExchangeSet ) deleteExchange ( msgID uint32 ) ( found , timedOut bool ) { if _ , found := mexset . exchanges [ msgID ] ; found { delete ( mexset . exchanges , msgID ) return true , false } if _ , expired := mexset . expiredExchanges [ msgID ] ; expired { delete ( mexset . expiredExchanges , msgID ) return false , true } return false , false }
// deleteExchange will delete msgID, and return whether it was found or whether it was
// timed out. This method must be called with the lock.
deleteExchange will delete msgID and return whether it was found or whether it was timed out . This method must be called with the lock .