Skip to content

Commit

Permalink
Open 2 methods in SftpChannelClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Li committed Oct 27, 2021
1 parent b5c22ed commit 18568ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public long getFileSize(String path) {
}
}

private void setIdentityStrategy(JSch jsch) {
protected void setIdentityStrategy(JSch jsch) {
String privateKey = Credentials.getPrivateKey(state);
if (StringUtils.isNotEmpty(privateKey)) {
for (IdentityStrategy strategy : STRATEGIES) {
Expand All @@ -185,7 +185,7 @@ private void setIdentityStrategy(JSch jsch) {
}
}

private void configSessionProperties() throws JSchException {
protected void configSessionProperties() throws JSchException {
session.setUserInfo(new MyUserInfo());
session.setDaemonThread(true);
session.setTimeout(MSTAGE_SFTP_CONN_TIMEOUT_MILLIS.get(state));
Expand Down

0 comments on commit 18568ce

Please sign in to comment.