Skip to content

fix: refactor loop - #346

Merged
mikeee merged 1 commit into
dapr:mainfrom
mikeee:fix/lint
Jul 22, 2026
Merged

fix: refactor loop#346
mikeee merged 1 commit into
dapr:mainfrom
mikeee:fix/lint

Conversation

@mikeee

@mikeee mikeee commented Jul 22, 2026

Copy link
Copy Markdown
Member

Description

Issue reference

This PR will close #number

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Mike Nguyen <hey@mike.ee>
Copilot AI review requested due to automatic review settings July 22, 2026 18:44
@mikeee
mikeee requested review from a team as code owners July 22, 2026 18:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Ready to approve

The change is a behavior-preserving refactor (dropping an unused key binding) and is low risk.

Note: this review does not count toward required approvals for merging.

Pull request overview

This PR refactors the route-configuration loop in the actor runtime to iterate directly over registered actor type values instead of (key, value) pairs, keeping behavior the same while simplifying the code.

Changes:

  • Replace types.iter_mut() with types.values_mut() in configure_method_routes to avoid binding an unused map key.
File summaries
File Description
dapr/src/server/actor/runtime/mod.rs Simplifies iteration over the actor registration map when draining and applying method registrations.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mikeee
mikeee merged commit 602fe1e into dapr:main Jul 22, 2026
36 checks passed
@github-actions

Copy link
Copy Markdown

Successfully created backport PR for release-0.19:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants