Extract StreamDiscoveryContext to executor/stream_discovery.rs module #15
No reviewers
Labels
No labels
adr
automated
bug
chore
dependencies
documentation
enhancement
epic
github-actions
P1-high
P2-medium
P3-low
release
research
rust
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jwilger/eventcore!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor-executor-extract-stream-discovery"
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?
Summary
Type of Change
Testing Checklist
Performance Impact
No performance impact expected - pure code organization change with identical runtime behavior.
Security Checklist
Code Quality
Reviewer Checklist
Review Focus
This is a pure refactoring with no functional changes. Focus on:
🤖 Generated with Claude Code
Pull Request Overview
This PR refactors the
executormodule by extracting key types and logic into dedicated submodules to improve organization and encapsulation without changing existing behavior.StreamDiscoveryContextintoexecutor/stream_discovery.rsRetryConfig,RetryPolicy) intoexecutor/retry.rsExecutionContextintoexecutor/context.rsexecutor.rsto use new modules and split large methods into focused helper functionsPLANNING.mdto reflect the refactoring progress and process rulesReviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
Comments suppressed due to low confidence (2)
PLANNING.md:102
PLANNING.md:327
@ -0,0 +54,4 @@}/// Checks if the iteration limit has been exceeded.pub(crate) fn is_limit_exceeded(&self) -> bool {The
is_limit_exceededmethod is not currently used; consider removing it or using it insidevalidate_iteration_limitto keep the iteration check logic DRY and consistent.@ -0,0 +55,4 @@/// Checks if the iteration limit has been exceeded.pub(crate) fn is_limit_exceeded(&self) -> bool {self.iteration >= self.max_iterationsThe iteration check here (
>=) and the one invalidate_iteration_limit(>) differ by one; unify these to prevent an off-by-one in stopping conditions.Closing this PR as obsolete. PR #10 has been merged and already implemented this extraction! The
StreamDiscoveryContexttype has been successfully extracted toexecutor/stream_discovery.rswith a complete type-state implementation as part of the functional refactoring in PR #10.Pull request closed