Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
Signed-off-by: CalvinNeo <[email protected]>
  • Loading branch information
CalvinNeo committed Jul 22, 2022
1 parent d647bdc commit e82c2eb
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions components/proxy_server/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1282,23 +1282,22 @@ impl<ER: RaftEngine> TiKvServer<ER> {
}

// Debug service.
// TODO(tiflash) make this usable when tikv merged.
// let debug_service = DebugService::new(
// Engines {
// kv: engines.engines.kv.rocks.clone(),
// raft: engines.engines.raft.clone(),
// },
// servers.server.get_debug_thread_pool().clone(),
// self.router.clone(),
// self.cfg_controller.as_ref().unwrap().clone(),
// );
// if servers
// .server
// .register_service(create_debug(debug_service))
// .is_some()
// {
// fatal!("failed to register debug service");
// }
let debug_service = DebugService::new(
Engines {
kv: engines.engines.kv.rocks.clone(),
raft: engines.engines.raft.clone(),
},
servers.server.get_debug_thread_pool().clone(),
self.router.clone(),
self.cfg_controller.as_ref().unwrap().clone(),
);
if servers
.server
.register_service(create_debug(debug_service))
.is_some()
{
fatal!("failed to register debug service");
}

// Create Diagnostics service
let diag_service = DiagnosticsService::new(
Expand Down

0 comments on commit e82c2eb

Please sign in to comment.