Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
savoirfairelinux
opendht
Commits
99f8c295
Commit
99f8c295
authored
8 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
python: rename bootstrap(sockaddr) to ping
parent
4132c63f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/opendht.pyx
+2
-2
2 additions, 2 deletions
python/opendht.pyx
with
2 additions
and
2 deletions
python/opendht.pyx
+
2
−
2
View file @
99f8c295
...
...
@@ -333,7 +333,7 @@ cdef class DhtRunner(_WithID):
return
h
def
getNodeId
(
self
):
return
self
.
thisptr
.
get
().
getNodeId
().
toString
()
def
bootstrap
(
self
,
SockAddr
addr
,
done_cb
=
None
):
def
ping
(
self
,
SockAddr
addr
,
done_cb
=
None
):
if
done_cb
:
cb_obj
=
{
'
done
'
:
done_cb
}
ref
.
Py_INCREF
(
cb_obj
)
...
...
@@ -350,7 +350,7 @@ cdef class DhtRunner(_WithID):
lock
.
notify
()
with
lock
:
pending
+=
1
self
.
bootstrap
(
addr
,
done_cb
=
tmp_done
)
self
.
ping
(
addr
,
done_cb
=
tmp_done
)
while
pending
>
0
:
lock
.
wait
()
return
ok
...
...
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