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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
38c09539
Commit
38c09539
authored
Oct 26, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use wait_ready argument name even when unused
parent
184750c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZEO/asyncio/client.py
src/ZEO/asyncio/client.py
+5
-5
No files found.
src/ZEO/asyncio/client.py
View file @
38c09539
...
@@ -547,7 +547,7 @@ class Client(object):
...
@@ -547,7 +547,7 @@ class Client(object):
def
get_peername
(
self
):
def
get_peername
(
self
):
return
self
.
protocol
.
get_peername
()
return
self
.
protocol
.
get_peername
()
def
call_async_threadsafe
(
self
,
future
,
_
,
method
,
args
):
def
call_async_threadsafe
(
self
,
future
,
wait_ready
,
method
,
args
):
if
self
.
ready
:
if
self
.
ready
:
self
.
protocol
.
call_async
(
method
,
args
)
self
.
protocol
.
call_async
(
method
,
args
)
future
.
set_result
(
None
)
future
.
set_result
(
None
)
...
@@ -557,7 +557,7 @@ class Client(object):
...
@@ -557,7 +557,7 @@ class Client(object):
def
call_async_from_same_thread
(
self
,
method
,
*
args
):
def
call_async_from_same_thread
(
self
,
method
,
*
args
):
return
self
.
protocol
.
call_async
(
method
,
args
)
return
self
.
protocol
.
call_async
(
method
,
args
)
def
call_async_iter_threadsafe
(
self
,
future
,
_
,
it
):
def
call_async_iter_threadsafe
(
self
,
future
,
wait_ready
,
it
):
if
self
.
ready
:
if
self
.
ready
:
self
.
protocol
.
call_async_iter
(
it
)
self
.
protocol
.
call_async_iter
(
it
)
future
.
set_result
(
None
)
future
.
set_result
(
None
)
...
@@ -623,7 +623,7 @@ class Client(object):
...
@@ -623,7 +623,7 @@ class Client(object):
except
Exception
:
except
Exception
:
logger
.
exception
(
"prefetch %r %r"
%
(
oid
,
tid
))
logger
.
exception
(
"prefetch %r %r"
%
(
oid
,
tid
))
def
prefetch
(
self
,
future
,
_
,
oids
,
tid
):
def
prefetch
(
self
,
future
,
wait_ready
,
oids
,
tid
):
if
self
.
ready
:
if
self
.
ready
:
for
oid
in
oids
:
for
oid
in
oids
:
if
self
.
cache
.
loadBefore
(
oid
,
tid
)
is
None
:
if
self
.
cache
.
loadBefore
(
oid
,
tid
)
is
None
:
...
@@ -634,7 +634,7 @@ class Client(object):
...
@@ -634,7 +634,7 @@ class Client(object):
future
.
set_exception
(
ClientDisconnected
())
future
.
set_exception
(
ClientDisconnected
())
@
future_generator
@
future_generator
def
tpc_finish_threadsafe
(
self
,
future
,
_
,
tid
,
updates
,
f
):
def
tpc_finish_threadsafe
(
self
,
future
,
wait_ready
,
tid
,
updates
,
f
):
if
self
.
ready
:
if
self
.
ready
:
try
:
try
:
tid
=
yield
self
.
protocol
.
fut
(
'tpc_finish'
,
tid
)
tid
=
yield
self
.
protocol
.
fut
(
'tpc_finish'
,
tid
)
...
@@ -804,7 +804,7 @@ class ClientRunner(object):
...
@@ -804,7 +804,7 @@ class ClientRunner(object):
self
.
__call
=
call_closed
self
.
__call
=
call_closed
def
apply_threadsafe
(
self
,
future
,
_
,
func
,
*
args
):
def
apply_threadsafe
(
self
,
future
,
wait_ready
,
func
,
*
args
):
try
:
try
:
future
.
set_result
(
func
(
*
args
))
future
.
set_result
(
func
(
*
args
))
except
Exception
as
exc
:
except
Exception
as
exc
:
...
...
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