format code (#248)

Signed-off-by: marsishandsome <marsishandsome@gmail.com>
This commit is contained in:
Liangliang Gu 2021-08-05 10:59:02 +08:00 committed by GitHub
parent 2327f9189f
commit 2009982676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -392,7 +392,8 @@ public class TiSession implements AutoCloseable {
if (res == null) {
synchronized (this) {
if (switchTiKVModeClient == null) {
switchTiKVModeClient = new SwitchTiKVModeClient(getPDClient(), getImporterRegionStoreClientBuilder());
switchTiKVModeClient =
new SwitchTiKVModeClient(getPDClient(), getImporterRegionStoreClientBuilder());
}
res = switchTiKVModeClient;
}
@ -589,7 +590,7 @@ public class TiSession implements AutoCloseable {
catalog.close();
}
if(switchTiKVModeClient != null) {
if (switchTiKVModeClient != null) {
switchTiKVModeClient.stopKeepTiKVToImportMode();
}
}