Skip to content

Commit

Permalink
update setTrieFlushCloneInterval plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Akohjesse committed Aug 26, 2024
1 parent 5e4ae14 commit 0b13242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/xplugeth_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ func pluginReorg(commonBlock *types.Block, oldChain, newChain types.Blocks) {
}

func pluginSetTrieFlushIntervalClone(flushInterval time.Duration) time.Duration {
m := xplugeth.GetModules[setTrieFlushIntervalClonePlugin]()
modules := xplugeth.GetModules[setTrieFlushIntervalClonePlugin]()
var snc sync.Once
if len(m) > 1 {
if len(modules) > 1 {
snc.Do(func() { log.Warn("The blockChain flushInterval value is being accessed by multiple plugins") })
}
for _, m := range m {
for _, m := range modules {
flushInterval = m.SetTrieFlushIntervalClone(flushInterval)
}
return flushInterval
Expand Down

0 comments on commit 0b13242

Please sign in to comment.