Skip to content
Snippets Groups Projects
Commit cc070c80 authored by Kaldoran's avatar Kaldoran Committed by Adrien Béraud
Browse files

Fix the autotool Makefile, missing pht include

Fix indentation for pull request #37

Fix include error, and use only needed file in pht

Fix implementation of function in pht
parent e332dae5
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,9 @@
#include <iostream>
#include <sstream>
#include "opendht.h"
#include "../value.h"
#include "../dhtrunner.h"
#include "../infohash.h"
namespace dht {
namespace indexation {
......
......@@ -19,7 +19,8 @@ libopendht_la_SOURCES = \
crypto.cpp \
securedht.cpp \
dhtrunner.cpp \
default_types.cpp
default_types.cpp \
indexation/pht.cpp
if WIN32
libopendht_la_SOURCES += rng.cpp
......@@ -42,4 +43,5 @@ nobase_include_HEADERS = \
../include/opendht/dhtrunner.h \
../include/opendht/default_types.h \
../include/opendht/log.h \
../include/opendht/rng.h
../include/opendht/rng.h \
../include/opendht/indexation/pht.h
......@@ -166,7 +166,6 @@ void Pht::insert(Key k, Value v, Dht::DoneCallbackSimple done_cb) {
lookupStep(kp, lo, hi, vals,
[=](std::vector<std::shared_ptr<Value>>& values, Prefix p) {
*final_prefix = Prefix(p);
return true;
},
[=](bool ok){
if (not ok) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment