[P2][refactor] AppState service locator 사용 축소 및 handler별 context/interface 도입 #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
문제
AppState의 필드가 대부분 public이고 여러 계층에서Arc<AppState>또는 내부 Arc를 직접 꺼내 쓰는 service locator 형태입니다.영향
제안
AppStatepublic field 최소화완료 기준
AppState대신 최소 context를 받음검토 기준: 업로드된 Rust
portal-relay코드 정적 리뷰. 리뷰 환경에서는cargo check/test/clippy를 실행하지 못했습니다.검토했지만 이번 범위에서는 수용하지 않습니다. AppState service locator 축소는 장기 설계 개선이지만, 현 relay compatibility 목표에 직접 필요한 변경은 아닙니다. 대규모 interface 분리는 테스트/호환성 리스크가 커서 닫습니다.