Skip to content

Commit cbad0bb

Browse files
Fix fmt
1 parent 9caf56f commit cbad0bb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/pd/client.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,14 @@ impl PdRpcClient<TikvConnect, Cluster> {
284284
) -> Result<PdRpcClient> {
285285
PdRpcClient::new(
286286
config.clone(),
287-
|security_mgr| TikvConnect::new(
288-
security_mgr,
289-
config.timeout,
290-
config.max_decoding_message_size,
291-
config.max_encoding_message_size,
292-
),
287+
|security_mgr| {
288+
TikvConnect::new(
289+
security_mgr,
290+
config.timeout,
291+
config.max_decoding_message_size,
292+
config.max_encoding_message_size,
293+
)
294+
},
293295
|security_mgr| RetryClient::connect(pd_endpoints, security_mgr, config.timeout),
294296
enable_codec,
295297
)

0 commit comments

Comments
 (0)