Merge pull request #28 from openrelayxyz/bugfix/freezer-leak

Bugfix/freezer leak
This commit is contained in:
AusIV 2022-01-07 14:13:41 -06:00 committed by GitHub
commit aaf9446523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) {
} }
for i := min ; i < num; i++ { for i := min ; i < num; i++ {
update, ok := freezerUpdates[i] update, ok := freezerUpdates[i]
defer func() { delete(freezerUpdates, i) }() defer func(i uint64) { delete(freezerUpdates, i) }(i)
if !ok { if !ok {
log.Warn("Attempting to commit untracked block", "num", i) log.Warn("Attempting to commit untracked block", "num", i)
continue continue