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:
Andrii Grynenko 2021-04-13 23:34:36 -07:00 committed by Facebook GitHub Bot
parent d1ab938072
commit e1dc359365

View File

@ -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)),