File tree Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Expand file tree Collapse file tree 2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change 1
1
from ..sockets import SocketSubscriber
2
2
from ..find import current_thing
3
3
4
- import gevent
5
4
import logging
6
5
7
6
@@ -21,7 +20,6 @@ def socket_handler(ws):
21
20
response = process_socket_message (message )
22
21
if response :
23
22
ws .send (response )
24
- gevent .sleep (0.1 )
25
23
# Remove the subscriber once the loop returns
26
24
current_thing .subscribers .remove (wssub )
27
25
logging .info (f"Removed subscriber { wssub } " )
Original file line number Diff line number Diff line change 1
- from gevent .monkey import patch_all
2
-
3
- __all__ = ["patch_all" ]
4
-
5
- """
6
- NOTE: THIS FILE IS EXCLUDED FROM OUR UNIT TESTS.
7
-
8
- MONKEY PATCHING IN THE MIDDLE OF A TEST SUITE RUNNING
9
- MAY CAUSE PROBLEMS.
10
-
11
- GIVEN THAT THIS MODULE IS SIMPLY A PROXY FOR GEVENTS
12
- MONKEY PATCHER, TESTSING IS FAIRLY REDUNDANT ANYWAY.
13
-
14
- THIS SHOULD BE PERIODICALLY REVISITED TO MAKE SURE ITS
15
- STILL TRUE.
16
-
17
- THANKS
18
- """
1
+ def patch_all (* args , ** kwargs ):
2
+ # Here for backwards compatibility
3
+ return
You can’t perform that action at this time.
0 commit comments