Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

이미지 리스트 업로드 병렬 처리로 변경 및 롤백 기능 추가 #756

Merged
merged 4 commits into from
Apr 23, 2024

Conversation

hgo641
Copy link
Collaborator

@hgo641 hgo641 commented Nov 22, 2023

📄 Summary

close #755

🙋🏻 More

아자자자자!!! 매우 간단하고 귀여운 PR 등장! 많관부!

Copy link

📝 Jacoco Test Coverage

Total Project Coverage 77.62%
File Coverage [18.6%]
ImageService.java 33.33%
ImageUploader.java 6.38%

@@ -30,9 +34,21 @@ public class ImageUploader {
private String folder;

public List<String> uploadImages(final List<ImageFile> imageFiles) {
return imageFiles.stream()
.map(this::uploadImage)
List<CompletableFuture<String>> imageUploadsFuture = imageFiles.stream()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final 안되는건가요

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

후하하하하하!!!!!!!!

Comment on lines 43 to 44
private List<String> getUploadedImageNamesFromFutures(List<CompletableFuture<String>> futures) {
List<String> fileNames = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

후하하하하하하하하하!!!!!!!!!!!!!!!!!!!1 새맥북에게 final의 중요성을 일깨워주고오겠습니다아ㅏㅏ아ㅏ

@hgo641 hgo641 force-pushed the refactor/imagesUpload branch from 53952e8 to dd5b336 Compare April 23, 2024 18:10
@hgo641 hgo641 merged commit 6f0fa5d into develop Apr 23, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

이미지 리스트 업로드 병렬 처리 및 예외시 롤백 기능 구현
4 participants