consolidate constants related to time for future refactoring (#14440)

This commit is contained in:
Jeff Washington (jwash)
2021-01-07 09:49:24 -06:00
committed by GitHub
parent 3fc7362486
commit 938d482135
8 changed files with 12 additions and 28 deletions

View File

@@ -1327,9 +1327,7 @@ pub fn process_ping(
// Sleep for half a slot
if signal_receiver
.recv_timeout(Duration::from_millis(
500 * clock::DEFAULT_TICKS_PER_SLOT / clock::DEFAULT_TICKS_PER_SECOND,
))
.recv_timeout(Duration::from_millis(clock::DEFAULT_MS_PER_SLOT / 2))
.is_ok()
{
break 'mainloop;