mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
code format & fine-tune
This commit is contained in:
@@ -107,8 +107,7 @@ public class MysqlConnector {
|
||||
sslVersion,
|
||||
sslCipher);
|
||||
} catch (Exception e) {
|
||||
logger.info("Can't show SSL status, server may not standard MySQL server: {}", e.toString());
|
||||
logger.debug("show SSL status exception", e);
|
||||
logger.warn("Can't show SSL status, server may not standard MySQL server", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -147,8 +147,7 @@ public abstract class BioSocketChannelPool {
|
||||
ksIS.close();
|
||||
} catch (IOException e) {
|
||||
// can't close input stream, but keystore can be properly initialized so we
|
||||
// shouldn't throw
|
||||
// this exception
|
||||
// shouldn't throw this exception
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -194,8 +193,7 @@ public abstract class BioSocketChannelPool {
|
||||
trustStoreIS.close();
|
||||
} catch (IOException e) {
|
||||
// can't close input stream, but keystore can be properly initialized so we
|
||||
// shouldn't throw this
|
||||
// exception
|
||||
// shouldn't throw this exception
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,10 +29,9 @@ public abstract class SocketChannelPool {
|
||||
|
||||
public static SocketChannel connectSsl(SocketChannel channel, SslInfo sslInfo) throws IOException {
|
||||
SslMode sslMode = sslInfo.getSslMode();
|
||||
|
||||
String type = chooseSocketChannel();
|
||||
if ("netty".equalsIgnoreCase(type)) {
|
||||
throw new UnsupportedOperationException("canal.socketChannel netty not support ssl mode: " + sslMode);
|
||||
throw new UnsupportedOperationException("canal socketChannel netty not support ssl mode: " + sslMode);
|
||||
} else {
|
||||
SocketAddress remoteSocketAddress = channel.getRemoteSocketAddress();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user