Skip to content
Snippets Groups Projects
Commit 4a8397d7 authored by Seva's avatar Seva Committed by Adrien Béraud
Browse files

dhtproxy: fix indirect memleaks from rest router traits

parent 624f3646
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ DhtProxyServer::DhtProxyServer(
settings.tls_context(std::move(tls_context));
httpsServer_ = std::make_unique<restinio::http_server_t<RestRouterTraitsTls>>(
restinio::own_io_context(),
std::forward<restinio::run_on_this_thread_settings_t<RestRouterTraitsTls>>(settings)
std::forward<restinio::run_on_this_thread_settings_t<RestRouterTraitsTls>>(std::move(settings))
);
// define http request destination
pushHostPort_ = splitPort(pushServer_);
......@@ -162,7 +162,7 @@ DhtProxyServer::DhtProxyServer(
settings.port(port);
httpServer_ = std::make_unique<restinio::http_server_t<RestRouterTraits>>(
restinio::own_io_context(),
std::forward<restinio::run_on_this_thread_settings_t<RestRouterTraits>>(settings)
std::forward<restinio::run_on_this_thread_settings_t<RestRouterTraits>>(std::move(settings))
);
// define http request destination
pushHostPort_ = splitPort(pushServer_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment