mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
Fix comment formatting for clarity
This commit is contained in:
parent
2f1722cd87
commit
d93f5eea35
1 changed files with 2 additions and 4 deletions
|
|
@ -176,11 +176,10 @@ func (s *stateSet) accountList() []common.Hash {
|
|||
s.listLock.Lock()
|
||||
defer s.listLock.Unlock()
|
||||
|
||||
//double check after acquiring the write lock
|
||||
// Double check after acquiring the write lock
|
||||
if list = s.accountListSorted; list != nil {
|
||||
return list
|
||||
}
|
||||
|
||||
list = slices.SortedFunc(maps.Keys(s.accountData), common.Hash.Cmp)
|
||||
s.accountListSorted = list
|
||||
return list
|
||||
|
|
@ -211,11 +210,10 @@ func (s *stateSet) storageList(accountHash common.Hash) []common.Hash {
|
|||
s.listLock.Lock()
|
||||
defer s.listLock.Unlock()
|
||||
|
||||
//double check after acquiring the write lock
|
||||
// Double check after acquiring the write lock
|
||||
if list := s.storageListSorted[accountHash]; list != nil {
|
||||
return list
|
||||
}
|
||||
|
||||
list := slices.SortedFunc(maps.Keys(s.storageData[accountHash]), common.Hash.Cmp)
|
||||
s.storageListSorted[accountHash] = list
|
||||
return list
|
||||
|
|
|
|||
Loading…
Reference in a new issue