Skip to content

Commit

Permalink
move use up
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
  • Loading branch information
sandreim committed Aug 29, 2024
1 parent 3c3c3e5 commit efb9bc2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions polkadot/node/subsystem-util/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ use polkadot_node_subsystem_types::UnpinHandle;
use polkadot_primitives::{
node_features::FeatureIndex, slashing, AsyncBackingParams, CandidateEvent, CandidateHash,
CoreIndex, CoreState, EncodeAs, ExecutorParams, GroupIndex, GroupRotationInfo, Hash,
IndexedVec, NodeFeatures, OccupiedCore, ScrapedOnChainVotes, SessionIndex, SessionInfo, Signed,
SigningContext, UncheckedSigned, ValidationCode, ValidationCodeHash, ValidatorId,
ValidatorIndex, LEGACY_MIN_BACKING_VOTES,
Id as ParaId, IndexedVec, NodeFeatures, OccupiedCore, ScrapedOnChainVotes, SessionIndex,
SessionInfo, Signed, SigningContext, UncheckedSigned, ValidationCode, ValidationCodeHash,
ValidatorId, ValidatorIndex, LEGACY_MIN_BACKING_VOTES,
};

use std::collections::{BTreeMap, VecDeque};

use crate::{has_required_runtime, request_claim_queue, request_disabled_validators, runtime};

use crate::{
request_async_backing_params, request_availability_cores, request_candidate_events,
request_from_runtime, request_key_ownership_proof, request_on_chain_votes,
Expand Down Expand Up @@ -580,11 +584,6 @@ pub async fn request_node_features(
}
}

use polkadot_primitives::Id as ParaId;
use std::collections::{BTreeMap, VecDeque};

use crate::{has_required_runtime, request_claim_queue, request_disabled_validators, runtime};

/// A snapshot of the runtime claim queue at an arbitrary relay chain block.
#[derive(Default)]
pub struct ClaimQueueSnapshot(pub BTreeMap<CoreIndex, VecDeque<ParaId>>);
Expand Down

0 comments on commit efb9bc2

Please sign in to comment.