Skip to content

Commit 2112d87

Browse files
committed
fix(web3signer-cache): fix style
1 parent a197f05 commit 2112d87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

validator_client/src/initialized_validators.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,12 +1002,12 @@ impl InitializedValidators {
10021002

10031003
// Only decrypt cache when there is at least one local definition.
10041004
// Decrypting cache is a very expensive operation which is never used for web3signer.
1005-
if has_local_definitions {
1006-
key_cache = self.decrypt_key_cache(cache, &mut key_stores).await?;
1005+
let key_cache = if has_local_definitions {
1006+
self.decrypt_key_cache(cache, &mut key_stores).await?
10071007
} else {
10081008
// Assign an empty KeyCache if all definitions are of the Web3Signer type.
1009-
key_cache = KeyCache::new();
1010-
}
1009+
KeyCache::new()
1010+
};
10111011

10121012
let mut disabled_uuids = HashSet::new();
10131013
for def in self.definitions.as_slice() {

0 commit comments

Comments
 (0)