accounts/keystore: scan key directory without locks held (#15171)
The accountCache contains a file cache, and remembers from scan to scan what files were present earlier. Thus, whenever there's a change, the scan phase only bothers processing new and removed files.
Showing
- accounts/keystore/account_cache.go 122 additions, 39 deletionsaccounts/keystore/account_cache.go
- accounts/keystore/account_cache_test.go 99 additions, 0 deletionsaccounts/keystore/account_cache_test.go
- accounts/keystore/keystore_test.go 68 additions, 46 deletionsaccounts/keystore/keystore_test.go
- accounts/keystore/watch.go 8 additions, 17 deletionsaccounts/keystore/watch.go
Loading
Please register or sign in to comment