Skip to content

Commit

Permalink
docs(staking): 📕 add doc comment for end_epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Mar 13, 2024
1 parent b429bc7 commit f7f78b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core/component/stake/src/component/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ impl Component for Staking {
state.set_delegation_changes(height, changes).await;
}

/// Writes validator updates for this block.
#[instrument(name = "staking", skip(state))]
async fn end_epoch<S: StateWrite + 'static>(state: &mut Arc<S>) -> anyhow::Result<()> {
let state = Arc::get_mut(state).context("state should be unique")?;
Expand Down

0 comments on commit f7f78b9

Please sign in to comment.