File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,10 @@ def is_monkey_patched():
61
61
thread_pool_executor_class = ThreadPoolExecutor
62
62
63
63
if "gevent" in EVENT_LOOP_MANAGER :
64
- try :
65
- import gevent .monkey
66
- gevent .monkey .patch_all ()
67
- from cassandra .io .geventreactor import GeventConnection
68
- connection_class = GeventConnection
69
- except ImportError :
70
- connection_class = None
64
+ import gevent .monkey
65
+ gevent .monkey .patch_all ()
66
+ from cassandra .io .geventreactor import GeventConnection
67
+ connection_class = GeventConnection
71
68
elif "eventlet" in EVENT_LOOP_MANAGER :
72
69
from eventlet import monkey_patch
73
70
monkey_patch ()
@@ -90,6 +87,9 @@ def is_monkey_patched():
90
87
elif "asyncio" in EVENT_LOOP_MANAGER :
91
88
from cassandra .io .asyncioreactor import AsyncioConnection
92
89
connection_class = AsyncioConnection
90
+ elif "libev" in EVENT_LOOP_MANAGER :
91
+ from cassandra .io .libevreactor import LibevConnection
92
+ connection_class = LibevConnection
93
93
else :
94
94
log .debug ("Using default event loop (libev)" )
95
95
try :
You can’t perform that action at this time.
0 commit comments