Core/Network: Fix typo in AsyncAcceptor function name (#30975)

This commit is contained in:
An-Zheng
2025-05-22 09:10:21 -04:00
committed by GitHub
parent b7122c2f6a
commit d1f9b23825

View File

@@ -39,7 +39,7 @@ class AsyncAcceptor
public:
AsyncAcceptor(Asio::IoContext& ioContext, std::string const& bindIp, uint16 port) :
_acceptor(ioContext), _endpoint(make_address(bindIp), port),
_socket(ioContext), _closed(false), _socketFactory([this] { return DefeaultSocketFactory(); })
_socket(ioContext), _closed(false), _socketFactory([this] { return DefaultSocketFactory(); })
{
}
@@ -124,7 +124,7 @@ public:
void SetSocketFactory(std::function<std::pair<IoContextTcpSocket*, uint32>()> func) { _socketFactory = std::move(func); }
private:
std::pair<IoContextTcpSocket*, uint32> DefeaultSocketFactory() { return std::make_pair(&_socket, 0); }
std::pair<IoContextTcpSocket*, uint32> DefaultSocketFactory() { return std::make_pair(&_socket, 0); }
boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, IoContextTcpSocket::executor_type> _acceptor;
boost::asio::ip::tcp::endpoint _endpoint;