Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
ae4d9496
Commit
ae4d9496
authored
May 26, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eliminate a needless layer of futures
And make waiting for reconnect a little easier.
parent
a4eca036
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
src/ZEO/asyncio/client.py
src/ZEO/asyncio/client.py
+1
-10
No files found.
src/ZEO/asyncio/client.py
View file @
ae4d9496
...
...
@@ -681,7 +681,6 @@ class ClientRunner:
self
.
__args
=
(
addrs
,
wrapper
,
cache
,
storage_key
,
read_only
,
disconnect_poll
)
self
.
timeout
=
timeout
self
.
connected
=
concurrent
.
futures
.
Future
()
def
setup_delegation
(
self
,
loop
):
self
.
loop
=
loop
...
...
@@ -699,14 +698,6 @@ class ClientRunner:
self
.
__call
=
call
@
self
.
client
.
connected
.
add_done_callback
def
thread_done_connecting
(
future
):
e
=
future
.
exception
()
if
e
is
not
None
:
self
.
connected
.
set_exception
(
e
)
else
:
self
.
connected
.
set_result
(
None
)
def
wait_for_result
(
self
,
future
,
timeout
):
try
:
return
future
.
result
(
self
.
timeout
if
timeout
is
False
else
timeout
)
...
...
@@ -816,7 +807,7 @@ class ClientThread(ClientRunner):
def
start
(
self
,
wait
=
True
):
if
wait
:
self
.
wait_for_result
(
self
.
connected
,
self
.
timeout
)
self
.
wait_for_result
(
self
.
c
lient
.
c
onnected
,
self
.
timeout
)
closed
=
False
def
close
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment