Skip to content

Commit

Permalink
Rename keys separator const
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Nov 18, 2024
1 parent 247679d commit 7f7f396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/ddc-verification/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub mod pallet {
pub const BUCKETS_AGGREGATES_FETCH_BATCH_SIZE: usize = 100;
pub const NODES_AGGREGATES_FETCH_BATCH_SIZE: usize = 10;
pub const VALIDATION_ACTIVITIES_KEY: &[u8] = b"offchain::activities::keys";
pub const VALIDATION_ACTIVITIES_KEYS_DELIMITER: u8 = b',';
pub const VALIDATION_ACTIVITIES_KEYS_SEP: u8 = b',';

#[pallet::pallet]
#[pallet::storage_version(STORAGE_VERSION)]
Expand Down Expand Up @@ -2480,7 +2480,7 @@ pub mod pallet {
let new_activity_keys = if existing_activities_keys.len() > 0 {
itertools::concat(vec![
existing_activities_keys,
vec![VALIDATION_ACTIVITIES_KEYS_DELIMITER],
vec![VALIDATION_ACTIVITIES_KEYS_SEP],
key,
])
} else {
Expand Down Expand Up @@ -2595,7 +2595,7 @@ pub mod pallet {
};

let validation_activities_keys_separated = validation_activities_keys
.split(|&x| x == VALIDATION_ACTIVITIES_KEYS_DELIMITER)
.split(|&x| x == VALIDATION_ACTIVITIES_KEYS_SEP)
.collect::<Vec<_>>();

for key in validation_activities_keys_separated {
Expand Down

0 comments on commit 7f7f396

Please sign in to comment.