Skip to content

Commit

Permalink
fix line
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyifangreeneyes committed Jan 28, 2023
1 parent 92486ef commit 140190d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions statistics/interact_with_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (sr *StatsReader) IsHistory() bool {
return sr.snapshot > 0
}

// Close closes the StatsReader.
func (sr *StatsReader) Close() error {
if sr.IsHistory() || sr.ctx == nil {
return nil
Expand Down

0 comments on commit 140190d

Please sign in to comment.