Improve folly::RequestContext::get()
authorTeng Qin <qinteng@fb.com>
Tue, 31 Oct 2017 20:49:14 +0000 (13:49 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 31 Oct 2017 20:54:54 +0000 (13:54 -0700)
commit3efddaffc51304e7e6ce477189f6cc38483641c0
tree8c0b140db2b6331cf9768056ce90b2af67094183
parentecd0fb38477b04e36685a0808a904fd9080f50b1
Improve folly::RequestContext::get()

Summary:
Since `folly::RequestContext::get()` returns raw pointer, it could directly use the reference returned by `getStaticContext()`
I don't expect this to make much of a difference, just tiny improvements

Reviewed By: yfeldblum

Differential Revision: D6153353

fbshipit-source-id: 1c41d4fc259aa5cb3e69e50ed24bed1ba9caf6c3
folly/io/async/Request.cpp