Skip to content

Commit

Permalink
fix std::move option.
Browse files Browse the repository at this point in the history
  • Loading branch information
duzhongwei committed Nov 23, 2022
1 parent 7e3bde5 commit 0f8356f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/brynet/net/wrapper/ServiceBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class BaseListenerBuilder
mIsIpV6,
mListenAddr,
mPort,
[service, option](brynet::net::TcpSocket::Ptr socket) mutable {
service->addTcpConnection(std::move(socket), std::move(option));
[service, option](brynet::net::TcpSocket::Ptr socket) {
service->addTcpConnection(std::move(socket), option);
},
mSocketProcessCallbacks,
mEnabledReusePort);
Expand Down

0 comments on commit 0f8356f

Please sign in to comment.