Skip to content

Commit 5422fe0

Browse files
author
dengjie
committed
rpc: code format
Signed-off-by: dengjie <dengjie.hello2dj@bytedance.com>
1 parent 05c3dcf commit 5422fe0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rpc/security.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
22

33
use std::{
4+
borrow::Borrow,
45
fs::File,
56
io::Read,
67
path::{Path, PathBuf},
78
sync::Arc,
89
time::Duration,
9-
borrow::Borrow,
1010
};
1111

1212
use grpcio::{Channel, ChannelBuilder, ChannelCredentialsBuilder, Environment};
13-
use log::*;
1413
use lazy_static::*;
14+
use log::*;
1515
use regex::Regex;
1616

1717
use crate::Result;
@@ -20,7 +20,6 @@ lazy_static! {
2020
static ref SCHEME_REG: Regex = Regex::new(r"^\s*(https?://)").unwrap();
2121
}
2222

23-
2423
fn check_pem_file(tag: &str, path: &Path) -> Result<File> {
2524
File::open(path)
2625
.map_err(|e| internal_err!("failed to open {} to load {}: {:?}", path.display(), tag, e))

0 commit comments

Comments
 (0)