Skip to content

Commit 2fac0bf

Browse files
committed
Small style fix
1 parent 2076040 commit 2fac0bf

File tree

1 file changed

+1
-2
lines changed
  • anchor/validator_store/src

1 file changed

+1
-2
lines changed

anchor/validator_store/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,15 +797,14 @@ impl<T: SlotClock, E: EthSpec> ValidatorStore for AnchorValidatorStore<T, E> {
797797
F: Fn(DoppelgangerStatus) -> Option<PublicKeyBytes>,
798798
{
799799
let state = self.database.state();
800-
let clusters = state.clusters();
801800

802801
// Treat all shares as `SigningEnabled`
803802
state
804803
.shares()
805804
.values()
806805
.filter_map(|v| filter_func(DoppelgangerStatus::SigningEnabled(v.validator_pubkey)))
807806
.filter(|public_key| {
808-
if let Some(clusters) = clusters.get_by(public_key) {
807+
if let Some(clusters) = state.clusters().get_by(public_key) {
809808
return !clusters.liquidated;
810809
}
811810
false

0 commit comments

Comments
 (0)