diff --git a/include/opendht/dht.h b/include/opendht/dht.h index 3d32e946df585c77a36a625e7588270abeab8b89..90c6b83f45605fa553bec24cce06b2de34c47819 100644 --- a/include/opendht/dht.h +++ b/include/opendht/dht.h @@ -243,13 +243,6 @@ public: int pingNode(const sockaddr*, socklen_t); - /** - * Maintains the store. For each storage, if values don't belong there - * anymore because this node is too far from the target, values are sent to - * the appropriate nodes. - */ - void maintainStore(bool force=false); - time_point periodic(const uint8_t *buf, size_t buflen, const sockaddr *from, socklen_t fromlen); /** @@ -886,6 +879,11 @@ private: void expireStorage(); void storageChanged(Storage& st, ValueStorage&); + /** + * For a given storage, if values don't belong there anymore because this + * node is too far from the target, values are sent to the appropriate + * nodes. + */ size_t maintainStorage(InfoHash id, bool force=false, DoneCallback donecb=nullptr); // Buckets