Rename connection modules to inbound_handler and connection_spawner#472
Rename connection modules to inbound_handler and connection_spawner#472
Conversation
Rename `src/app/connection.rs` to `src/app/inbound_handler.rs` and `src/server/connection.rs` to `src/server/connection_spawner.rs` to eliminate naming ambiguity with the public `src/connection/` module. The public API is unchanged — only private (`mod`, not `pub mod`) modules are renamed. Updated all internal imports, module-level documentation, and 13 docs files referencing the old paths. Closes #460 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reviewer's GuideRenames the internal app and server connection modules to inbound_handler and connection_spawner, updates all internal imports/usages and documentation to match, and records the change in the changelog without altering public APIs or runtime behavior. Class diagram for renamed inbound_handler and connection_spawner modulesclassDiagram
namespace app {
class WireframeApp {
+process_stream(stream, frame_codec, serializer)
+handle_frame(envelope, context)
+decode_envelope(frame, frame_codec)
+send_response(response, context)
+send_response_framed_with_codec(response, frame_codec, context)
}
class inbound_handler {
}
}
namespace server {
class connection_spawner {
+spawn_connection_task(stream, app_factory, preamble_handler, serializer, frame_metadata)
}
class runtime_accept_rs {
+accept_loop(listener, app_factory, preamble_handler, serializer)
}
}
class FrameCodec {
<<interface>>
+wrap_payload(payload)
+frame_payload(frame)
}
class FramePipeline {
}
WireframeApp --> FrameCodec : uses
WireframeApp --> FramePipeline : uses
runtime_accept_rs --> connection_spawner : imports
connection_spawner --> WireframeApp : spawns_tasks_for
WireframeApp ..> inbound_handler : implemented_in
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
No actionable comments were generated in the recent review. 🎉 Summary by CodeRabbitRelease Notes
WalkthroughSummarise the PR: rename internal modules to clarify directionality, add codec error and recovery modules and a new public Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `docs/adr-004-pluggable-protocol-codecs.md:18` </location>
<code_context>
-Hotline, MySQL, and Redis Serialization Protocol (RESP) from reusing
+`src/app/inbound_handler.rs` and `src/app/frame_handling.rs`). This makes
+framing inflexible and prevents protocols with alternative framing rules (such
+as Hotline, MySQL, and Redis Serialization Protocol (RESP) from reusing
Wireframe's routing, middleware, and serialization infrastructure.
</code_context>
<issue_to_address>
**issue (typo):** Fix mismatched parentheses in the protocol list around "RESP".
The sentence currently has two opening parentheses (before "such as" and before "RESP") but only one closing parenthesis. Please either add a second closing parenthesis after `RESP))` or remove the outer "(" before "such as" so the parentheses are balanced.
```suggestion
as Hotline, MySQL, and Redis Serialization Protocol (RESP)) from reusing
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Add missing closing parenthesis in the protocol list sentence around "RESP" to balance the nested parenthetical. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… docs Corrected line break formatting in docs/execplans/9-1-3-fragment-adapter-trait.md and docs/execplans/9-3-1-fragment-adapter-trait.md. These changes improve readability by removing unnecessary line splits and ensuring consistent sentence flow. Co-authored-by: devboxerhub[bot] <devboxerhub[bot]@users.noreply.github.com>
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary
Changes
Rationale
Public API Impact
Migration/Upgrade Notes
Build and Test Plan
Additional Context
◳ Generated by DevBoxer ◰
ℹ️ Tag @devboxerhub to ask questions and address PR feedback
📎 Task: https://www.devboxer.com/task/8fed44c8-3462-4849-9cd3-95e13f1807e7
📝 Closes #460
Summary by Sourcery
Rename internal connection modules to clarify inbound handling and server connection task responsibilities, and align all references and documentation with the new names.
Enhancements:
inbound_handlerand the server connection module toconnection_spawnerto better reflect their roles.Documentation:
inbound_handlerandconnection_spawnerinstead of the old connection module paths.Tests:
inbound_handlermodule path.Chores:
connection_spawnermodule.