Skip to content

Commit b1c0898

Browse files
author
Anirav Kareddy
committed
removed debugging lines
1 parent a396a7c commit b1c0898

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/main/java/software/amazon/encryption/s3/S3AsyncEncryptionClient.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public CompletableFuture<PutObjectResponse> putObject(PutObjectRequest putObject
151151
.s3AsyncClient(_wrappedClient)
152152
.cryptoMaterialsManager(_cryptoMaterialsManager)
153153
.secureRandom(_secureRandom)
154-
//Debugging: added this line
155154
.instructionFileConfig(_instructionFileConfig)
156155
.build();
157156

@@ -164,11 +163,9 @@ private CompletableFuture<PutObjectResponse> multipartPutObject(PutObjectRequest
164163
// if the wrappedClient is a CRT, use it
165164
mpuClient = _wrappedClient;
166165
} else {
167-
// else create a default CRT client (debugging: yes goes here)
166+
// else create a default CRT client
168167
mpuClient = S3AsyncClient.crtCreate();
169168
}
170-
//The issue is here: after this step, the instruction file config is null
171-
//Debugging: added this line to include the instruction file config
172169
PutEncryptedObjectPipeline pipeline = PutEncryptedObjectPipeline.builder()
173170
.s3AsyncClient(mpuClient)
174171
.cryptoMaterialsManager(_cryptoMaterialsManager)
@@ -294,9 +291,6 @@ public void close() {
294291
_instructionFileConfig.closeClient();
295292
}
296293

297-
public InstructionFileConfig get_instructionFileConfig() {
298-
return _instructionFileConfig;
299-
}
300294

301295
// This is very similar to the S3EncryptionClient builder
302296
// Make sure to keep both clients in mind when adding new builder options

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public class PutEncryptedObjectPipeline {
2424
final private CryptographicMaterialsManager _cryptoMaterialsManager;
2525
final private AsyncContentEncryptionStrategy _asyncContentEncryptionStrategy;
2626
final private ContentMetadataEncodingStrategy _contentMetadataEncodingStrategy;
27-
//Debugging:
2827
final private InstructionFileConfig _instructionFileConfig;
2928
public static Builder builder() {
3029
return new Builder();

0 commit comments

Comments
 (0)