Skip to content

Commit 99f8c29

Browse files
committed
python: rename bootstrap(sockaddr) to ping
1 parent 4132c63 commit 99f8c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/opendht.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ cdef class DhtRunner(_WithID):
333333
return h
334334
def getNodeId(self):
335335
return self.thisptr.get().getNodeId().toString()
336-
def bootstrap(self, SockAddr addr, done_cb=None):
336+
def ping(self, SockAddr addr, done_cb=None):
337337
if done_cb:
338338
cb_obj = {'done':done_cb}
339339
ref.Py_INCREF(cb_obj)
@@ -350,7 +350,7 @@ cdef class DhtRunner(_WithID):
350350
lock.notify()
351351
with lock:
352352
pending += 1
353-
self.bootstrap(addr, done_cb=tmp_done)
353+
self.ping(addr, done_cb=tmp_done)
354354
while pending > 0:
355355
lock.wait()
356356
return ok

0 commit comments

Comments
 (0)