Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
4meta5 committed Jun 13, 2024
1 parent fb37d1f commit 86f9e60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pallets/shards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ pub mod pallet {
let Some(old_status) = ShardState::<T>::get(shard_id) else { return };
ShardMembersOnline::<T>::mutate(shard_id, |x| *x = x.saturating_plus_one());
match old_status {
ShardStatus::Created | ShardStatus::Committed => ShardState::<T>::insert(shard_id, ShardStatus::Offline),
ShardStatus::Created | ShardStatus::Committed => {
ShardState::<T>::insert(shard_id, ShardStatus::Offline)
},
_ => (),
}
}
Expand Down

0 comments on commit 86f9e60

Please sign in to comment.