Skip to content

Commit

Permalink
propagate the McThriftContext wrapper for thriftHandlerCallback consi…
Browse files Browse the repository at this point in the history
…stently

Reviewed By: alikhtarov

Differential Revision: D49243311

fbshipit-source-id: d170455b0cd818253b8e158b44f6fa5cc7b8ed2a
  • Loading branch information
Udip Pant authored and facebook-github-bot committed Sep 18, 2023
1 parent 565f39e commit 819b227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mcrouter/lib/network/McThriftContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ class McThriftContext {
return underlying_->getConnectionContext()->getHeader();
}

apache::thrift::HandlerCallback<Reply>& getThriftHandlerCallback() {
return *underlying_;
}

private:
std::unique_ptr<apache::thrift::HandlerCallback<Reply>> underlying_;
};
Expand Down

0 comments on commit 819b227

Please sign in to comment.