From 3106d28bfa9ec50a769884f5d9529893ed98d1dc Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 15 Jan 2019 17:42:45 +1100 Subject: [PATCH] Add Send + Sync to slot_clock --- beacon_chain/utils/slot_clock/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/utils/slot_clock/src/lib.rs b/beacon_chain/utils/slot_clock/src/lib.rs index 7bdb775af..4863f7669 100644 --- a/beacon_chain/utils/slot_clock/src/lib.rs +++ b/beacon_chain/utils/slot_clock/src/lib.rs @@ -4,7 +4,7 @@ mod testing_slot_clock; pub use crate::system_time_slot_clock::{Error as SystemTimeSlotClockError, SystemTimeSlotClock}; pub use crate::testing_slot_clock::{Error as TestingSlotClockError, TestingSlotClock}; -pub trait SlotClock { +pub trait SlotClock: Send + Sync { type Error; fn present_slot(&self) -> Result, Self::Error>;