mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
add comment about suboptimal-ness of the billy deletion iteration.
This commit is contained in:
parent
8827b3a5cb
commit
6738987786
1 changed files with 3 additions and 0 deletions
|
|
@ -1721,6 +1721,9 @@ func (p *BlobPool) DropTransactions() {
|
|||
p.lock.Lock()
|
||||
defer p.lock.Unlock()
|
||||
|
||||
// manually iterating and deleting every entry is super sub-optimal
|
||||
// However, DropTransactions is not currently used in production so
|
||||
// performance is not critical at the moment.
|
||||
for _, entry := range p.lookup {
|
||||
if err := p.store.Delete(entry); err != nil {
|
||||
log.Warn("failed to delete blob tx from backing store", "err", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue