Skip to content

Commit ac186e1

Browse files
committed
use the configured client
1 parent 606f104 commit ac186e1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/software/amazon/encryption/s3/internal/ContentMetadataDecodingStrategy.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ private ContentMetadata decodeFromInstructionFile(GetObjectRequest request, GetO
180180

181181
ResponseInputStream<GetObjectResponse> instruction;
182182
try {
183-
// intentionally fail
184-
S3AsyncClient newClient = S3AsyncClient.create();
185-
instruction = newClient.getObject(instructionGetObjectRequest, AsyncResponseTransformer.toBlockingInputStream()).join();
186-
// instruction = wrappedAsyncClient_.getObject(instructionGetObjectRequest, AsyncResponseTransformer.toBlockingInputStream()).join();
183+
instruction = wrappedAsyncClient_.getObject(instructionGetObjectRequest, AsyncResponseTransformer.toBlockingInputStream()).join();
187184
} catch (NoSuchKeyException exception) {
188185
// Most likely, the customer is attempting to decrypt an object
189186
// which is not encrypted with the S3 EC.

0 commit comments

Comments
 (0)