File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments