Skip to content

Commit

Permalink
Use correct s3 client based on bucket for import
Browse files Browse the repository at this point in the history
Signed-off-by: Ansari, Mujammil <[email protected]>
  • Loading branch information
mujammil10 committed Sep 20, 2024
1 parent 8bf4778 commit 1446e65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ private void syncExecution() throws WebClientException, SQLException, TooManyRes
*/
private int syncWriteFileToSpace(Input input, long newVersion)
throws IOException, WebClientException, SQLException, TooManyResourcesClaimed {
final S3Client s3Client = S3Client.getInstance();
final S3Client s3Client = S3Client.getInstance(input.getS3Bucket());

InputStream inputStream = s3Client.streamObjectContent(input.getS3Key());
if (input.isCompressed())
Expand Down

0 comments on commit 1446e65

Please sign in to comment.