Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
f991cee5
Commit
f991cee5
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Tag request done is the same thread as pyev loop.
parent
88a21dac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ccnode/node.py
+3
-2
3 additions, 2 deletions
ccnode/node.py
with
3 additions
and
2 deletions
ccnode/node.py
+
3
−
2
View file @
f991cee5
...
...
@@ -7,7 +7,7 @@ from functools import partial
import
pyev
from
sjrpc.core
import
RpcConnection
from
sjrpc.utils
import
ConnectionProxy
,
RpcHandler
from
sjrpc.utils
import
ConnectionProxy
,
RpcHandler
,
threadless
from
ccnode
import
__version__
from
ccnode.config
import
NodeConfigParser
...
...
@@ -168,7 +168,7 @@ class MainLoop(object):
)
# handlers
self
.
rpc_handler
=
dict
(
get_tags
=
partial
(
get_tags
,
self
.
tag_db
[
'
__main__
'
]),
get_tags
=
partial
(
threadless
(
get_tags
)
,
self
.
tag_db
[
'
__main__
'
]),
sub_tags
=
self
.
sub_tags
,
)
...
...
@@ -176,6 +176,7 @@ class MainLoop(object):
self
.
registered_plugins
=
set
()
# RPC handlers definitions
@threadless
def
sub_tags
(
self
,
sub_id
,
tags
=
None
,
noresolve_tags
=
None
):
if
sub_id
==
'
__main__
'
:
# FIXME should we raise ?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment