Skip to content

Commit

Permalink
Merge pull request #28 from openrelayxyz/bugfix/freezer-leak
Browse files Browse the repository at this point in the history
Bugfix/freezer leak
  • Loading branch information
AusIV authored Jan 7, 2022
2 parents 47e8d07 + ec68600 commit aaf9446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/plugin_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func PluginCommitUpdate(pl *plugins.PluginLoader, num uint64) {
}
for i := min ; i < num; i++ {
update, ok := freezerUpdates[i]
defer func() { delete(freezerUpdates, i) }()
defer func(i uint64) { delete(freezerUpdates, i) }(i)
if !ok {
log.Warn("Attempting to commit untracked block", "num", i)
continue
Expand Down

0 comments on commit aaf9446

Please sign in to comment.