Skip to content

Commit

Permalink
fix wrong property of S3 resource
Browse files Browse the repository at this point in the history
  • Loading branch information
duanxujian committed Oct 29, 2024
1 parent bb50ce1 commit 141b452
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ public static TS3StorageParam getS3TStorageParam(Map<String, String> properties)
s3Info.setMaxConn(Integer.parseInt(maxConnections == null
? S3Properties.Env.DEFAULT_MAX_CONNECTIONS : maxConnections));
String requestTimeoutMs = properties.get(S3Properties.REQUEST_TIMEOUT_MS);
s3Info.setMaxConn(Integer.parseInt(requestTimeoutMs == null
s3Info.setRequestTimeoutMs(Integer.parseInt(requestTimeoutMs == null
? S3Properties.Env.DEFAULT_REQUEST_TIMEOUT_MS : requestTimeoutMs));
String connTimeoutMs = properties.get(S3Properties.CONNECTION_TIMEOUT_MS);
s3Info.setMaxConn(Integer.parseInt(connTimeoutMs == null
s3Info.setConnTimeoutMs(Integer.parseInt(connTimeoutMs == null
? S3Properties.Env.DEFAULT_CONNECTION_TIMEOUT_MS : connTimeoutMs));
String usePathStyle = properties.getOrDefault(PropertyConverter.USE_PATH_STYLE, "false");
s3Info.setUsePathStyle(Boolean.parseBoolean(usePathStyle));
Expand Down

0 comments on commit 141b452

Please sign in to comment.