Skip to content
Snippets Groups Projects
Commit 844b1dcf authored by Adrien Béraud's avatar Adrien Béraud
Browse files

Update README.md

parent 71065ce2
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ int main() { ...@@ -33,7 +33,7 @@ int main() {
node.putSigned("unique_key_42", some_data); node.putSigned("unique_key_42", some_data);
// get data from the dht // get data from the dht
node.get("other_unique_key", [](const std::vector<std::shared_ptr<Value>>& values) { node.get("other_unique_key", [](const std::vector<std::shared_ptr<dht::Value>>& values) {
// Callback called when values are found // Callback called when values are found
for (const auto& value : values) for (const auto& value : values)
std::cout << "Found value: " << value << std::endl; std::cout << "Found value: " << value << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment