Skip to content
Snippets Groups Projects
Commit 6bc9fa9e authored by Martin Vogel's avatar Martin Vogel
Browse files

feature(#664): cleanup

parent dce6c6e5
No related branches found
No related tags found
1 merge request!211#664 Test JWK Generator
This commit is part of merge request !211. Comments created here will be created in the context of that merge request.
...@@ -59,9 +59,7 @@ public class SendNewSubmissionStrategy { ...@@ -59,9 +59,7 @@ public class SendNewSubmissionStrategy {
final SubmissionForPickup announcedSubmission = sender.createSubmission(newSubmission); final SubmissionForPickup announcedSubmission = sender.createSubmission(newSubmission);
final UUID announcedSubmissionId = announcedSubmission.getSubmissionId(); final UUID announcedSubmissionId = announcedSubmission.getSubmissionId();
final var startTimeAttachmentUpload = StopWatch.start();
uploadAttachments(encryptedAttachments, announcedSubmissionId); uploadAttachments(encryptedAttachments, announcedSubmissionId);
LOGGER.info("Uploading attachments took {}", StopWatch.stopWithFormattedTime(startTimeAttachmentUpload));
LOGGER.info("Creating metadata"); LOGGER.info("Creating metadata");
final Metadata metadata = buildMetadata(sendableSubmission, encryptedAttachments); final Metadata metadata = buildMetadata(sendableSubmission, encryptedAttachments);
...@@ -155,7 +153,9 @@ public class SendNewSubmissionStrategy { ...@@ -155,7 +153,9 @@ public class SendNewSubmissionStrategy {
LOGGER.info("No attachments to upload"); LOGGER.info("No attachments to upload");
} else { } else {
LOGGER.info("Uploading {} attachment(s)", attachmentPayloads.size()); LOGGER.info("Uploading {} attachment(s)", attachmentPayloads.size());
final var startTimeAttachmentUpload = StopWatch.start();
attachmentPayloads.forEach(a -> sender.uploadAttachment(submissionId, a.getAttachmentId(), a.getEncryptedData())); attachmentPayloads.forEach(a -> sender.uploadAttachment(submissionId, a.getAttachmentId(), a.getEncryptedData()));
LOGGER.info("Uploading attachments took {}", StopWatch.stopWithFormattedTime(startTimeAttachmentUpload));
} }
} }
......
...@@ -55,7 +55,7 @@ public class SchemaResourceProvider implements SchemaProvider { ...@@ -55,7 +55,7 @@ public class SchemaResourceProvider implements SchemaProvider {
populateDestinationSchemas(schemaResources.getDestinationSchemaPaths()); populateDestinationSchemas(schemaResources.getDestinationSchemaPaths());
populateSubmissionDataSchemas(schemaResources.getSubmissionDataSchemaPath()); populateSubmissionDataSchemas(schemaResources.getSubmissionDataSchemaPath());
LOGGER.info("Initialised sdk schemas"); LOGGER.info("Initialised SDK schemas");
} }
private void populateMetadataSchemas(final List<String> metadataSchemaPaths) { private void populateMetadataSchemas(final List<String> metadataSchemaPaths) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment