Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Fullstop000 <fullstop1005@gmail.com>
  • Loading branch information
Fullstop000 committed May 10, 2020
1 parent 940c268 commit d27b996
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/server/service/diagnostics.rs
Expand Up @@ -6,14 +6,14 @@ use std::time::{Duration, Instant};
use futures::{Future, Sink, Stream};
use futures_cpupool::CpuPool;
use grpcio::{RpcContext, RpcStatus, RpcStatusCode, ServerStreamingSink, UnarySink, WriteFlags};
use kvproto::diagnosticspb::{
Diagnostics, SearchLogRequest, SearchLogResponse, ServerInfoRequest, ServerInfoResponse,
ServerInfoType,
};
#[cfg(feature = "prost-codec")]
use kvproto::diagnosticspb::search_log_request::Target as SearchLogRequestTarget;
#[cfg(not(feature = "prost-codec"))]
use kvproto::diagnosticspb::SearchLogRequestTarget;
use kvproto::diagnosticspb::{
Diagnostics, SearchLogRequest, SearchLogResponse, ServerInfoRequest, ServerInfoResponse,
ServerInfoType,
};

use tikv_util::security::{check_common_name, SecurityManager};
use tikv_util::timer::GLOBAL_TIMER_HANDLE;
Expand All @@ -30,13 +30,19 @@ pub struct Service {
}

impl Service {
pub fn new(pool: CpuPool, log_file: String, slow_log_file: String, security_mgr: Arc<SecurityManager>) -> Self {
pub fn new(
pool: CpuPool,
log_file: String,
slow_log_file: String,
security_mgr: Arc<SecurityManager>,
) -> Self {
Service {
pool,
log_file,
slow_log_file,
security_mgr,
}
}
}

impl Diagnostics for Service {
Expand Down

0 comments on commit d27b996

Please sign in to comment.