Delete leader scheduler artifact

This commit is contained in:
Greg Fitzgerald
2019-02-28 08:29:57 -07:00
committed by Grimes
parent 6eb09a6901
commit 8e4cd6fcc3

View File

@ -50,7 +50,7 @@ fn par_execute_entries(bank: &Bank, entries: &[(&Entry, Vec<Result<()>>)]) -> Re
/// 2. Process the locked group in parallel /// 2. Process the locked group in parallel
/// 3. Register the `Tick` if it's available /// 3. Register the `Tick` if it's available
/// 4. Update the leader scheduler, goto 1 /// 4. Update the leader scheduler, goto 1
fn par_process_entries_with_scheduler(bank: &Bank, entries: &[Entry]) -> Result<()> { fn par_process_entries(bank: &Bank, entries: &[Entry]) -> Result<()> {
// accumulator for entries that can be processed in parallel // accumulator for entries that can be processed in parallel
let mut mt_group = vec![]; let mut mt_group = vec![];
for entry in entries { for entry in entries {
@ -83,7 +83,7 @@ fn par_process_entries_with_scheduler(bank: &Bank, entries: &[Entry]) -> Result<
/// Process an ordered list of entries. /// Process an ordered list of entries.
pub fn process_entries(bank: &Bank, entries: &[Entry]) -> Result<()> { pub fn process_entries(bank: &Bank, entries: &[Entry]) -> Result<()> {
par_process_entries_with_scheduler(bank, entries) par_process_entries(bank, entries)
} }
/// Process an ordered list of entries, populating a circular buffer "tail" /// Process an ordered list of entries, populating a circular buffer "tail"
@ -418,10 +418,6 @@ mod tests {
); );
} }
fn par_process_entries(bank: &Bank, entries: &[Entry]) -> Result<()> {
par_process_entries_with_scheduler(bank, entries)
}
#[test] #[test]
fn test_process_empty_entry_is_registered() { fn test_process_empty_entry_is_registered() {
let (genesis_block, mint_keypair) = GenesisBlock::new(2); let (genesis_block, mint_keypair) = GenesisBlock::new(2);