diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2018-05-26 16:16:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-26 16:16:13 +0300 |
commit | b538f1fb43c790c9043630e6bfad42f037dbe03a (patch) | |
tree | e932ad8f364ddfa108e633a3624371a569936fdb /include/tgbot/net/TgWebhookLocalServer.h | |
parent | 987adf188619011acff2052301245e4df22a38d2 (diff) | |
parent | ad40032ec5608af2fd94b28cbfe498a7313c3af0 (diff) |
Merge pull request #60 from JellyBrick/master
Improve performance
Diffstat (limited to 'include/tgbot/net/TgWebhookLocalServer.h')
-rw-r--r-- | include/tgbot/net/TgWebhookLocalServer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tgbot/net/TgWebhookLocalServer.h b/include/tgbot/net/TgWebhookLocalServer.h index 67268f5..99a0fba 100644 --- a/include/tgbot/net/TgWebhookLocalServer.h +++ b/include/tgbot/net/TgWebhookLocalServer.h @@ -39,7 +39,7 @@ public: TgWebhookLocalServer(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>& acceptor, const std::string& path, EventHandler* eventHandler) = delete; TgWebhookLocalServer(const std::string& path, const EventHandler* eventHandler) : - TgWebhookServer<boost::asio::local::stream_protocol>(std::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(new boost::asio::local::stream_protocol::acceptor(_ioService, boost::asio::local::stream_protocol::endpoint(path))), path, eventHandler) + TgWebhookServer<boost::asio::local::stream_protocol>(std::make_shared<boost::asio::basic_socket_acceptor<boost::asio::local::stream_protocol>>(_ioService, boost::asio::local::stream_protocol::endpoint(path)), path, eventHandler) { } |