mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
767570d298
Summary: `PerfCounters` was the only application-specific type exposed as a parameter to the post-request callbacks, and it was only being used in one place. To facilitate making the post-request callback functionality more general, this diff makes the callback in question capture the `CoreContext` in its environment, thereby giving it access to the `PerfCounters` without requiring it to be passed as an argument. This should not change the behavior since regardless of how the callback obtains a reference, it will still refer to the same underlying `PerfCounters` from the request's `CoreContext`. Reviewed By: DurhamG Differential Revision: D23298417 fbshipit-source-id: 898f14e5b35b827e98eaf1731db436261baa43bb |
||
---|---|---|
.. | ||
fs | ||
integration | ||
locale | ||
mononoke | ||
scm | ||
scripts | ||
test_support | ||
test-data | ||
.clang-format | ||
.gitignore | ||
Eden.project.toml |