Commit 7a8ee5c6 authored by Denis Bilenko's avatar Denis Bilenko

hub.py: rename attribute 'DEFAULT_BACKEND' with 'backend'

parent 0b220651
......@@ -273,7 +273,7 @@ class Hub(greenlet):
'gevent.socket.BlockingResolver']
resolver_class = resolver_config(resolver_class, 'GEVENT_RESOLVER')
threadpool_class = config('gevent.threadpool.ThreadPool', 'GEVENT_THREADPOOL')
DEFAULT_BACKEND = config(None, 'GEVENT_BACKEND')
backend = config(None, 'GEVENT_BACKEND')
format_context = 'pprint.pformat'
threadpool_size = 10
......@@ -288,7 +288,7 @@ class Hub(greenlet):
default = get_ident() == MAIN_THREAD
loop_class = _import(self.loop_class)
if loop is None:
loop = self.DEFAULT_BACKEND
loop = self.backend
self.loop = loop_class(flags=loop, default=default)
self._resolver = None
self._threadpool = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment