Skip to content

Commit

Permalink
Update core/station/impl/src/services/external_canister.rs
Browse files Browse the repository at this point in the history
Co-authored-by: mraszyk <[email protected]>
  • Loading branch information
keplervital and mraszyk authored Oct 1, 2024
1 parent 8f4e5a3 commit 4a0afce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/station/impl/src/services/external_canister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,7 @@ impl ExternalCanisterService {
ExternalCanisterChangeCallPermissionsInput::OverrideSpecifiedByExecutionMethods(
calls,
) => {
let update_call_methods = calls.iter().fold(HashSet::new(), |mut acc, call| {
acc.insert(call.execution_method.clone());
acc
});
let update_call_methods: HashSet<_> = calls.iter().map(|call| call.execution_method).collect();

// removes all existing call permissions of the updated methods
self.permission_repository
Expand Down

0 comments on commit 4a0afce

Please sign in to comment.