mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +00:00
Companion to "Updating scale to v3" (#4958)
* Updating dependencies * Adapting code to scale v3 * Upgrade bitvec to 1.0.0 * Fix bitvec arithmetics * Update Cargo.lock * Update sp-io * Fixing the build * Yanked scale-info 2.0.0 Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -291,7 +291,7 @@ impl ProvisionerJob {
|
||||
}
|
||||
}
|
||||
|
||||
type CoreAvailability = BitVec<bitvec::order::Lsb0, u8>;
|
||||
type CoreAvailability = BitVec<u8, bitvec::order::Lsb0>;
|
||||
|
||||
/// The provisioner is the subsystem best suited to choosing which specific
|
||||
/// backed candidates and availability bitfields should be assembled into the
|
||||
|
||||
@@ -10,7 +10,7 @@ pub fn occupied_core(para_id: u32) -> CoreState {
|
||||
occupied_since: 100_u32,
|
||||
time_out_at: 200_u32,
|
||||
next_up_on_time_out: None,
|
||||
availability: bitvec![bitvec::order::Lsb0, u8; 0; 32],
|
||||
availability: bitvec![u8, bitvec::order::Lsb0; 0; 32],
|
||||
candidate_descriptor: dummy_candidate_descriptor(dummy_hash()),
|
||||
candidate_hash: Default::default(),
|
||||
})
|
||||
@@ -31,7 +31,7 @@ where
|
||||
}
|
||||
|
||||
pub fn default_bitvec(n_cores: usize) -> CoreAvailability {
|
||||
bitvec![bitvec::order::Lsb0, u8; 0; n_cores]
|
||||
bitvec![u8, bitvec::order::Lsb0; 0; n_cores]
|
||||
}
|
||||
|
||||
pub fn scheduled_core(id: u32) -> ScheduledCore {
|
||||
|
||||
Reference in New Issue
Block a user