-
Notifications
You must be signed in to change notification settings - Fork 25
fix: resolve #106 by avoiding shared mutable queues in ThreadedScanning #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: resolve #106 by avoiding shared mutable queues in ThreadedScanning #113
Conversation
…dScanning Move input/output queues into __init__ to ensure instance-level isolation. Did not use `field(default_factory=...)` because __init__ is explicitly defined, which disables dataclass auto-init behavior.
WalkthroughThe changes refactor the initialization of the Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Caller
participant TS as ThreadedScanning
participant Q as Queue
Client->>TS: Instantiate ThreadedScanning
TS->>Q: Create new inputs queue
TS->>Q: Create new output queue
TS-->>Client: Return new instance with unique queues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hi @githole, thanks for your contribution! I've seen there are errors in our pipelines, could you please be so kind to take a look? Otherwise the PR LGTM Thanks, Matias |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you for your review! |
Move input/output queues into init to ensure instance-level isolation. Did not use
field(default_factory=...)
because init is explicitly defined, which disables dataclass auto-init behavior.Summary by CodeRabbit