refactor: remove dead retry code and consolidate reservation emit methods#698
refactor: remove dead retry code and consolidate reservation emit methods#698kamilwronka wants to merge 1 commit intodevelopfrom
Conversation
…it methods - Remove unused `handleRetryQueue` method and its `AmqpMessage` interface from both `apps/api` and `apps/activity` retry services (never called anywhere) - Consolidate duplicate `emitReservationCreated`/`emitReservationDeleted` into a single `emitReservationEvent` method parameterized by routing key Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughRemoved Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
handleRetryQueuemethod from bothapps/api/src/rabbitmq/retry.service.tsandapps/activity/src/shared/rabbitmq/retry.service.ts— this method (and itsAmqpMessageinterface) was never called anywhere in the codebase. Removes ~35 lines of dead code per file.apps/api/src/reservations/reservations.service.ts—emitReservationCreatedandemitReservationDeletedwere identical except for the routing key. Replaced with a singleemitReservationEvent(guildId, reservation, routingKey)method.Safety
handleRetryQueue: Confirmed zero callers via codebase-wide grep. Only the definition existed.amqpConnection.publishcall, just parameterized by routing key.@lootlog/nest-sharedresolution) are unrelated.Files touched
apps/api/src/rabbitmq/retry.service.tshandleRetryQueue+AmqpMessageinterfaceapps/activity/src/shared/rabbitmq/retry.service.tshandleRetryQueue+AmqpMessageinterfaceapps/api/src/reservations/reservations.service.tsResidual risks
None — all changes are strictly subtractive or mechanical consolidation with no behavioral change.
🤖 Generated with Claude Code
Summary by CodeRabbit