mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
Move ReleasableDestructor into HeaderClientChannel
Summary: Since HeaderClientChannel now accepts a transport unique_ptr there's no need to have this deleter exposed outside of HeaderClientChannel. Reviewed By: iahs Differential Revision: D27729209 fbshipit-source-id: 064b03afdfe567b6df6437348596f0f6f97f6aaf
This commit is contained in:
parent
d1ab938072
commit
e1dc359365
@ -16,7 +16,6 @@
|
||||
#include <tuple>
|
||||
|
||||
using folly::AsyncServerSocket;
|
||||
using ReleasableDestructor = folly::AsyncSocket::ReleasableDestructor;
|
||||
using folly::AsyncSocket;
|
||||
using folly::Future;
|
||||
using folly::IOBuf;
|
||||
@ -192,7 +191,7 @@ class RpcTcpHandler : public folly::DelayedDestruction {
|
||||
public:
|
||||
RpcTcpHandler(
|
||||
std::shared_ptr<RpcServerProcessor> proc,
|
||||
std::unique_ptr<AsyncSocket, ReleasableDestructor>&& socket,
|
||||
AsyncSocket::UniquePtr&& socket,
|
||||
std::shared_ptr<folly::Executor> threadPool)
|
||||
: proc_(proc),
|
||||
sock_(std::move(socket)),
|
||||
|
Loading…
Reference in New Issue
Block a user