'Remove any references to the consumer tag in internal structures
for consumer state.
:param str consumer_tag: The consumer tag to cleanup'

def _cleanup_consumer_ref(self, consumer_tag):

    self._consumers_with_noack.discard(consumer_tag)
    self._consumers.pop(consumer_tag, None)
    self._cancelled.discard(consumer_tag)
