mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-07 11:32:21 +00:00
13 lines
294 B
Rust
13 lines
294 B
Rust
use beacon_chain::{BeaconChain, BeaconChainTypes};
|
|
use iron::typemap::Key;
|
|
use std::marker::PhantomData;
|
|
use std::sync::Arc;
|
|
|
|
pub struct BeaconChainKey<T> {
|
|
_phantom: PhantomData<T>,
|
|
}
|
|
|
|
impl<T: BeaconChainTypes + 'static> Key for BeaconChainKey<T> {
|
|
type Value = Arc<BeaconChain<T>>;
|
|
}
|