Clean up type casts

This commit is contained in:
Michael Vines
2019-03-01 13:10:17 -08:00
parent a72325dbc2
commit fdc31e99df
7 changed files with 12 additions and 15 deletions

View File

@@ -172,11 +172,8 @@ impl BankingStage {
// the likelihood of any single thread getting starved and processing old ids.
// TODO: Banking stage threads should be prioritized to complete faster then this queue
// expires.
let (loaded_accounts, results) = bank.load_and_execute_transactions(
txs,
lock_results,
MAX_RECENT_TICK_HASHES as usize / 2,
);
let (loaded_accounts, results) =
bank.load_and_execute_transactions(txs, lock_results, MAX_RECENT_TICK_HASHES / 2);
let load_execute_time = now.elapsed();
let record_time = {

View File

@@ -25,7 +25,7 @@ pub enum PohServiceConfig {
impl Default for PohServiceConfig {
fn default() -> PohServiceConfig {
// TODO: Change this to Tick to enable PoH
PohServiceConfig::Sleep(Duration::from_millis(1000 / NUM_TICKS_PER_SECOND as u64))
PohServiceConfig::Sleep(Duration::from_millis(1000 / NUM_TICKS_PER_SECOND))
}
}

View File

@@ -88,7 +88,7 @@ impl RpcClient {
// Sleep for approximately half a slot
sleep(Duration::from_millis(
500 * DEFAULT_TICKS_PER_SLOT / NUM_TICKS_PER_SECOND as u64,
500 * DEFAULT_TICKS_PER_SLOT / NUM_TICKS_PER_SECOND,
));
}
}