Skip to content

Commit

Permalink
Remove unnecessary p = p in lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jan 27, 2024
1 parent c7f784d commit 24c4c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3412,7 +3412,7 @@ R"x*x*x(<html>
{
return net::async_initiate<CompletionToken,
void (boost::system::error_code, std::string)>(
[this, p = p]
[this, p]
(auto&& handler) mutable
{
auto bound_handler = net::bind_executor(
Expand All @@ -3421,7 +3421,7 @@ R"x*x*x(<html>
);

std::thread(
[this, p = p, bound_handler = std::move(bound_handler)]() mutable
[this, p, bound_handler = std::move(bound_handler)]() mutable
{
boost::system::error_code ec;
auto hash = file_hash(p, ec);
Expand Down

0 comments on commit 24c4c28

Please sign in to comment.