dht: add logger to constructor

This commit is contained in:
Adrien Béraud committed 2019-05-22 00:47:25 -04:00
1 parent 37b12c114d
commit c7e2483160
13 files changed
+72 -34

No files matched your search

+2 -2
View File
@@ -72,8 +72,8 @@ struct DhtProxyClient::ProxySearch {
DhtProxyClient::DhtProxyClient() {}
DhtProxyClient::DhtProxyClient(std::function<void()> signal, const std::string& serverHost, const std::string& pushClientId)
: serverHost_(serverHost), pushClientId_(pushClientId), loopSignal_(signal)
DhtProxyClient::DhtProxyClient(std::function<void()> signal, const std::string& serverHost, const std::string& pushClientId, const Logger& l)
: DhtInterface(l), serverHost_(serverHost), pushClientId_(pushClientId), loopSignal_(signal)
{
if (serverHost_.find("://") == std::string::npos)
serverHost_ = proxy::HTTP_PROTO + serverHost_;