mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
python: adapt to new owner api
This commit is contained in:
1 parent
9d7f6d287a
commit
fc6e884b54
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -139,7 +139,7 @@ cdef class Value(object):
|
||||
property owner:
|
||||
def __get__(self):
|
||||
h = InfoHash()
|
||||
h._infohash = self._value.get().owner.getId()
|
||||
h._infohash = self._value.get().owner.get().getId()
|
||||
return h
|
||||
property recipient:
|
||||
def __get__(self):
|
||||
|
||||
@@ -86,7 +86,7 @@ cdef extern from "opendht/value.h" namespace "dht":
|
||||
Value(const uint8_t* dat_ptr, size_t dat_len) except +
|
||||
string toString() const
|
||||
uint64_t id
|
||||
PublicKey owner
|
||||
shared_ptr[PublicKey] owner
|
||||
InfoHash recipient
|
||||
vector[uint8_t] data
|
||||
string user_type
|
||||
|
||||
Reference in new issue
Block a user