Skip to content

Commit

Permalink
dbcmd: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnss committed Jan 9, 2024
1 parent 6193fe2 commit cc0e317
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions trie/inspect_trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,8 @@ func (inspect *Inspector) Run() {
ticker := time.NewTicker(30 * time.Second)
go func() {
defer ticker.Stop()
for {
select {
case <-ticker.C:
inspect.db.Cap(DEFAULT_TRIEDBCACHE_SIZE)
}
for range ticker.C {
inspect.db.Cap(DEFAULT_TRIEDBCACHE_SIZE)
}
}()
}
Expand Down

0 comments on commit cc0e317

Please sign in to comment.