From 99f8c2950b4c1d4af8e668e3d6ed317683924005 Mon Sep 17 00:00:00 2001 From: Adrien Beraud <adrien.beraud@savoirfairelinux.com> Date: Mon, 10 Apr 2017 01:12:00 +0200 Subject: [PATCH] python: rename bootstrap(sockaddr) to ping --- python/opendht.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/opendht.pyx b/python/opendht.pyx index 94695282..1ce761a0 100644 --- a/python/opendht.pyx +++ b/python/opendht.pyx @@ -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 -- GitLab