Add init methods for each op module (#3087)

This commit is contained in:
Ryan Dahl 2019-10-11 11:41:54 -07:00 committed by GitHub
parent 04ed8d0531
commit 97d8498d46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 292 additions and 361 deletions

View file

@ -104,9 +104,8 @@ impl Deref for ThreadSafeState {
}
impl ThreadSafeState {
// TODO: better name welcome
/// Wrap core `OpDispatcher` to collect metrics.
pub fn cli_op<D>(
pub fn core_op<D>(
&self,
dispatcher: D,
) -> impl Fn(&[u8], Option<PinnedBuf>) -> CoreOp