Skip to content

[deployer] remove redundant region clone in authorize loop#3331

Open
VolodymyrBg wants to merge 1 commit intocommonwarexyz:mainfrom
VolodymyrBg:fix/aws-authorize-region-clone
Open

[deployer] remove redundant region clone in authorize loop#3331
VolodymyrBg wants to merge 1 commit intocommonwarexyz:mainfrom
VolodymyrBg:fix/aws-authorize-region-clone

Conversation

@VolodymyrBg
Copy link
Contributor

Why was this change needed?

In aws authorize, we iterated over owned String regions but still called Region::new(region.clone()).
That added an unnecessary string clone on each loop iteration.

What changed?

  • Updated deployer/src/aws/authorize.rs to pass ownership directly: Region::new(region).
  • Kept region logging by moving the log before client creation ("creating EC2 client").

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant