def __consumer(self) -> Consumer:
     consumer = Consumer(('localhost:50510', ))
     consumer.client_factory = client_factory()
     return consumer