accounts: improve comment

This commit is contained in:
Felix Lange 2020-02-12 13:00:48 +01:00 committed by GitHub
parent 928b4bfba8
commit 9313c2f810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ func (am *Manager) Wallets() []Wallet {
return am.walletsNoLock()
}
// Wallets without lock.
// walletsNoLock returns all registered wallets. Callers must hold am.lock.
func (am *Manager) walletsNoLock() []Wallet {
cpy := make([]Wallet, len(am.wallets))
copy(cpy, am.wallets)