Skip to content

Commit

Permalink
update comments (solana-labs#33399)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Sep 25, 2023
1 parent b131673 commit 642d76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bucket_map/src/restart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(crate) struct Header {
/// u8 representing how many entries to search for during collisions.
/// If this is different, then the contents of the index file's contents are likely not as helpful.
max_search: u8,
/// padding to get header to u128 aligned
/// padding to make size of Header be an even multiple of u128
_dummy: [u8; 15],
}

Expand All @@ -44,7 +44,7 @@ pub(crate) struct OneIndexBucket {
file_name: u128,
/// each bucket uses a random value to hash with pubkeys. Without this, hashing would be inconsistent between restarts.
random: u64,
/// padding to make u128 aligned
/// padding to make size of OneIndexBucket be an even multiple of u128
_dummy: u64,
}

Expand Down

0 comments on commit 642d76b

Please sign in to comment.