Skip to content

Commit

Permalink
Remove unnecessary trait bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
afck committed Jan 15, 2025
1 parent 92d6c71 commit 89c126b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions linera-chain/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ where
/// Having a leader timeout certificate in any given round causes the next one to become
/// current. Seeing a validated block certificate or a valid proposal in any round causes that
/// round to become current, unless a higher one already is.
#[graphql(skip)] // Part of `ComplexObject` below.
#[graphql(skip)]
pub current_round: RegisterView<C, Round>,
/// The owners that take over in fallback mode.
pub fallback_owners: RegisterView<C, BTreeMap<Owner, (PublicKey, u64)>>,
Expand All @@ -177,14 +177,13 @@ where
/// round to become current, unless a higher one already is.
#[graphql(derived(name = "current_round"))]
async fn _current_round(&self) -> Round {
*self.current_round.get()
self.current_round()
}
}

impl<C> ChainManager<C>
where
C: Context + Clone + Send + Sync + 'static,
C::Extra: ExecutionRuntimeContext,
{
/// Replaces `self` with a new chain manager.
pub fn reset<'a>(
Expand Down Expand Up @@ -696,7 +695,6 @@ pub struct ChainManagerInfo {
impl<C> From<&ChainManager<C>> for ChainManagerInfo
where
C: Context + Clone + Send + Sync + 'static,
C::Extra: ExecutionRuntimeContext,
{
fn from(manager: &ChainManager<C>) -> Self {
let current_round = manager.current_round();
Expand Down

0 comments on commit 89c126b

Please sign in to comment.