mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
reference instead of copy, removing forgotten cout
This commit is contained in:
1 parent
4aad11f003
commit
ba5953bc6b
2 files changed
+1
-2
No files matched your search
+1
-1
@@ -2576,7 +2576,7 @@ Dht::onError(std::shared_ptr<NetworkEngine::RequestStatus> status, DhtProtocolEx
|
||||
//if (esr == searches.end()) return;
|
||||
unsigned cleared = 0;
|
||||
for (auto& srp : status->node->ss.ss_family == AF_INET ? searches4 : searches6) {
|
||||
auto sr = srp.second;
|
||||
auto& sr = srp.second;
|
||||
for (auto& n : sr->nodes) {
|
||||
if (n.node != status->node) continue;
|
||||
cleared++;
|
||||
|
||||
@@ -172,7 +172,6 @@ void cmd_loop(DhtRunner& dht, dht_params& params)
|
||||
});
|
||||
}
|
||||
else if (op == "l") {
|
||||
std::cout << id << std::endl;
|
||||
dht.listen(id, [](std::shared_ptr<Value> value) {
|
||||
std::cout << "Listen: found value:" << std::endl;
|
||||
std::cout << "\t" << *value << std::endl;
|
||||
|
||||
Reference in new issue
Block a user