Skip to content

Commit

Permalink
Add explicit capacity for should_be_deauthenticated
Browse files Browse the repository at this point in the history
Co-authored-by: MOZGIII <[email protected]>
  • Loading branch information
dmitrylavrenov and MOZGIII authored Mar 20, 2024
1 parent 6137c5a commit 4626c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/humanode-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ impl
}
let mut weight: Weight = Weight::zero();
let weights = <Runtime as frame_system::Config>::DbWeight::get();
let mut should_be_deauthenticated = vec![];
let mut should_be_deauthenticated = Vec::with_capacity(offenders.len());
for details in offenders {
let (_offender, identity) = &details.offender;
match identity {
Expand Down

0 comments on commit 4626c44

Please sign in to comment.