mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
remove deprecated APIs
This commit is contained in:
1 parent
a363d573e3
commit
44f2aaa876
10 files changed
+18
-254
No files matched your search
+1
-1
@@ -481,7 +481,7 @@ cmd_loop(std::shared_ptr<DhtRunner>& node,
|
||||
auto value = std::make_shared<dht::Value>(dht::ValueType::USER_DATA.id,
|
||||
std::vector<uint8_t> {v.begin(), v.end()});
|
||||
value->user_type = "text/plain";
|
||||
node->putEncrypted(id, InfoHash(tostr), std::move(value), [start](bool ok) {
|
||||
node->putEncrypted(id, PkId(tostr), std::move(value), [start](bool ok) {
|
||||
auto end = std::chrono::high_resolution_clock::now();
|
||||
std::cout << "Put encrypted: " << (ok ? "success" : "failure") << " (took "
|
||||
<< print_duration(end - start) << ')' << std::endl;
|
||||
|
||||
Reference in new issue
Block a user