Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Mar 11, 2021
1 parent 353bb18 commit 1b1d360
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions blockstore/splitstore/splitstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,8 @@ func (s *SplitStore) gcHotstore() {
if err != nil {
log.Warnf("error compacting hotstore: %s", err)
return
} else {
log.Infow("hotstore compaction done", "took", time.Since(startCompact))
}
log.Infow("hotstore compaction done", "took", time.Since(startCompact))
}

if gc, ok := s.hot.(interface{ CollectGarbage() error }); ok {
Expand All @@ -816,9 +815,9 @@ func (s *SplitStore) gcHotstore() {
err := gc.CollectGarbage()
if err != nil {
log.Warnf("error garbage collecting hotstore: %s", err)
} else {
log.Infow("garbage collection done", "took", time.Since(startGC))
return
}
log.Infow("hotstore garbage collection done", "took", time.Since(startGC))
}
}

Expand Down

0 comments on commit 1b1d360

Please sign in to comment.