diff options
| author | Omer Katz <omer.drow@gmail.com> | 2020-08-04 17:27:37 +0300 |
|---|---|---|
| committer | Omer Katz <omer.drow@gmail.com> | 2020-08-04 17:37:29 +0300 |
| commit | 85578afc4fea28adc16afdd3d7418b240357d96e (patch) | |
| tree | 81f7b78cc160aadba8eec61babc5a79b2f42a612 /kombu/pools.py | |
| parent | a130c4636796623aa038848202b02c1a549c1312 (diff) | |
| download | kombu-remove-python2-support.tar.gz | |
autopep8.remove-python2-support
Diffstat (limited to 'kombu/pools.py')
| -rw-r--r-- | kombu/pools.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kombu/pools.py b/kombu/pools.py index 9db8db8d..065a6ebb 100644 --- a/kombu/pools.py +++ b/kombu/pools.py @@ -105,6 +105,8 @@ class Connections(PoolGroup): def create(self, connection, limit): return connection.Pool(limit=limit) + + connections = register_group(Connections(limit=use_global_limit)) # noqa: E305 @@ -113,6 +115,8 @@ class Producers(PoolGroup): def create(self, connection, limit): return ProducerPool(connections[connection], limit=limit) + + producers = register_group(Producers(limit=use_global_limit)) # noqa: E305 |
