python: preserve permanence in blocking puts

This commit is contained in:
Adrien Beraud committed 2026-10-26 00:51:27 -04:00
1 parent 552813e1b9
commit b66ff83fe2
1 file changed
+2 -2
+2 -2
View File
@@ -803,7 +803,7 @@ cdef class DhtRunner(_WithID):
lock.notify()
with lock:
pending += 1
self.put(key, val, done_cb=tmp_done)
self.put(key, val, done_cb=tmp_done, permanent=permanent)
while pending > 0:
lock.wait()
return ok
@@ -825,7 +825,7 @@ cdef class DhtRunner(_WithID):
lock.notify()
with lock:
pending += 1
self.putSigned(key, val, done_cb=tmp_done)
self.putSigned(key, val, done_cb=tmp_done, permanent=permanent)
while pending > 0:
lock.wait()
return ok