Skip to content

Commit 28035b0

Browse files
committed
adapter v2 - clean up comments
1 parent 52070cb commit 28035b0

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

adapter/src/adapter.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ use crate::{
77
Error,
88
};
99

10-
// pub use self::state::{Locked, Unlocked};
11-
12-
// pub type UnlockedC = Adapter<dyn Unlocked<Error = crate::Error>, state::UnlockedState>;
13-
// pub type LockedC = Adapter<dyn Locked<Error = crate::Error>, state::UnlockedState>;
14-
1510
pub(crate) mod state {
1611
#[derive(Debug, Clone, Copy)]
1712
/// The `Locked` state of the [`crate::Adapter`].
@@ -40,7 +35,6 @@ pub(crate) mod state {
4035
pub struct Adapter<C, S = state::LockedState> {
4136
/// client in a specific state - Locked or Unlocked
4237
pub client: Arc<C>,
43-
// /// We must use the `C` type from the definition
4438
_state: PhantomData<S>,
4539
}
4640

validator_worker/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ fn main() -> Result<(), Box<dyn Error>> {
9090

9191
let ethereum =
9292
Ethereum::init(keystore_options, &config).expect("failed to init Ethereum adapter");
93-
// .unlock()
94-
// .expect("failed to Unlock Ethereum adapter");
93+
9594
let adapter = Adapter::new(ethereum)
9695
.unlock()
9796
.expect("failed to Unlock Ethereum adapter");

0 commit comments

Comments
 (0)