예제 #1
0
파일: clients.py 프로젝트: artdokxxx/rb
 def __init__(self, connection_pool, max_concurrency=None,
              auto_batch=True):
     RoutingBaseClient.__init__(self, connection_pool=connection_pool,
                                auto_batch=auto_batch)
     # careful.  If you introduce any other variables here, then make
     # sure that FanoutClient.target still works correctly!
     self._max_concurrency = max_concurrency
     self._cb_poll = poll()
예제 #2
0
 def __init__(self, connection_pool, max_concurrency=None,
              auto_batch=True):
     RoutingBaseClient.__init__(self, connection_pool=connection_pool,
                                auto_batch=auto_batch)
     # careful.  If you introduce any other variables here, then make
     # sure that FanoutClient.target still works correctly!
     self._max_concurrency = max_concurrency
     self._cb_poll = poll()