mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
c064d70c02
Summary: We use a forked version of Gotham in Mononoke. This isn't great, because we have to maintain this fork. Ideally, we'd upstream our changes, but as is they're a bit intrusive and not generally useful, which makes this hard. I've reworked how we do our Gotham changes, and now we only need to make 1 bit of code public, which might be easier to get upstream. Concretely, Gotham has a concept of "connected handler" that links a Hyper request and a socket address, but in our case we want more things. This change lets us instantiate our own Gotham state, and then add a few more things to it as necessary. This diff updates our code accordingly to be compatible. This also lets us trim down on some ceremony we had to do call into Gotham from Mononoke Server. Reviewed By: farnz Differential Revision: D26634653 fbshipit-source-id: 024a48ebc3f323c165ac412ef422755e8cb1c650 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |