Skip to content

[#388] Thread-safe를 개선한다#390

Merged
opficdev merged 4 commits intodevelopfrom
fix/#388-thread
Apr 14, 2026
Merged

[#388] Thread-safe를 개선한다#390
opficdev merged 4 commits intodevelopfrom
fix/#388-thread

Conversation

@opficdev
Copy link
Copy Markdown
Owner

🔗 연관된 이슈

📝 작업 내용

📌 요약

  • 웹페이지 이미지 저장소 접근의 actor 기반 정리
  • 파일 I/O의 Task.detached(priority: .utility) 기반 백그라운드 실행 분리
  • 웹페이지 메타데이터 저장 및 이미지 복구 경로 정리
  • Apple 로그인 delegate 및 continuation 흐름의 single-flight 보호 로직 추가

🔍 상세

  • WebPageImageStore 공개 API의 async 전환
  • 파일 작업 로직의 static helper 메서드 분리
  • FileManager@Sendable 클로저 캡처 회피
  • WebPageMetadataService, WebPageImageRepositoryImpl, WebPageRepositoryImpl의 저장소 API 호출 정리
  • AppleSignInDelegate@MainActor delegate 유지
  • AppleAuthenticationService의 continuation 소유권 및 완료 처리 단일화
  • SocialLoginError.authenticationAlreadyInProgress 추가

📸 영상 / 이미지 (Optional)

image

@opficdev opficdev self-assigned this Apr 14, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 PR은 WebPageImageStoreactor로 전환하여 동시성을 개선하고, Apple 로그인 과정에 상태 체크 로직을 도입하여 중복 요청을 방지했습니다. 또한 파일 시스템 작업들을 유틸리티 우선순위의 별도 태스크로 분리했습니다. 리뷰 피드백으로는 WebPageImageStore에서 제거된 CurrentValueSubject로 인해 발생할 수 있는 실시간 크기 모니터링 기능의 회귀 가능성을 지적하며, AsyncStream 도입을 제안했습니다.

Comment thread DevLog/Storage/Persistence/WebPageImageStore.swift
@opficdev opficdev merged commit b1f6985 into develop Apr 14, 2026
1 check passed
@opficdev opficdev deleted the fix/#388-thread branch April 14, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thread-safe를 개선한다

1 participant