Skip to content

Commit

Permalink
fix lint + changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 committed Dec 4, 2024
1 parent ebd0e83 commit 447cad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
### Added

- [#7907](https://github.com/thanos-io/thanos/pull/7907) Receive: Add `--receive.grpc-service-config` flag to configure gRPC service config for the receivers.
- [#7957](https://github.com/thanos-io/thanos/pull/7957) Compact, Store Gateway: Compactor will set series p90, p99, p999 and p9999 size in `meta.json` file. Lazy expanded postings will choose estimated series size based on `estimated-series-size-stat` flag.

### Changed

Expand Down
3 changes: 2 additions & 1 deletion pkg/block/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ func newSketch() *sketch {

func (s *sketch) Add(v int64) {
s.cnt++
s.s.Add(float64(v))
// Impossible to happen since v should > 0.
_ = s.s.Add(float64(v))
}

func (s *sketch) Avg() int64 {
Expand Down

0 comments on commit 447cad7

Please sign in to comment.