Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
| Layer / File(s) | Summary |
|---|---|
오류 타입과 응답 계약 src/error.rs, src/lib.rs |
아홉 가지 오류 변형과 각 변형의 CRLF 종료 응답을 정의하고 error 모듈을 등록합니다. |
프로토콜 파싱 오류 통합 src/protocol.rs, src/protocol/tokens.rs |
파서와 토큰 처리에서 공통 Error 변형을 사용합니다. 관련 테스트 기대값도 새 변형에 맞춥니다. |
ASCII 응답 전송 src/ascii.rs |
성공 응답과 파싱 오류 응답을 각각 전체 바이트 슬라이스로 한 번의 콜백 호출에 전달합니다. |
Priority:
Estimated code review effort: 2 (Simple) | ~15 minutes
Change: Refactor
Suggested reviewers: zhy2on
Merge Risk: 
Minimal · previous review 065cd
-
No actionable merge-blocking issue is established by the supplied evidence. The change is mergeable after normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed -
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
7035b99 to
042dbc9
Compare
| impl Error { | ||
| /// The reply line, worded as arcus-memcached words the same failure. | ||
| pub const fn reply(self) -> &'static [u8] { | ||
| match self { |
There was a problem hiding this comment.
추가되었습니다.
Overflowed 응답도 추가되었습니다.
🔗 Related Issue
⌨️ What I did
vop명령의 실패 응답을src/error.rs의Errorenum 하나로 모읍니다.응답 문구는 arcus-memcached가 같은 상황에 쓰는 문구를 그대로 따릅니다.
#[expect(dead_code)]로 표시했습니다.응답 목록
BadCommandLineCLIENT_ERROR bad command line formatBadDataChunkCLIENT_ERROR bad data chunk\r\n이 선언과 다름TooLargeValueCLIENT_ERROR too large valueBadValueCLIENT_ERROR bad valueNotFoundNOT_FOUNDNotFoundElementNOT_FOUND_ELEMENTTypeMismatchTYPE_MISMATCHOutOfMemorySERVER_ERROR out of memoryInternalSERVER_ERROR internalSummary by CodeRabbit