示例#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()