prometheus/tsdb/chunks
beorn7 747c5ee2b1 Apply analyzer "modernize" to the whole codebase
See
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize
for details.

This ran into a few issues (arguably bugs in the modernize tool),
which I will fix in the next commit, so that we have transparency what
was done automatically.

Beyond those hiccups, I believe all the changes applied are
legitimate. Even where there might be no tangible direct gain, I would
argue it's still better to use the "modern" way to avoid micro
discussions in tiny style PRs later.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-08-27 14:48:41 +02:00
..
chunk_write_queue.go refactor: use the built-in max/min to simplify the code 2025-05-20 14:36:39 +08:00
chunk_write_queue_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
chunks.go tsdb: fix issue where a new segment file is created for every chunk if WithSegmentSize not called (#16635) 2025-05-28 18:21:59 +02:00
chunks_test.go tsdb: fix issue where a new segment file is created for every chunk if WithSegmentSize not called (#16635) 2025-05-28 18:21:59 +02:00
head_chunks.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
head_chunks_other.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
head_chunks_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
head_chunks_windows.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
queue.go Reduce chunk write queue memory usage 2 (#10874) 2022-06-29 17:51:27 +05:30
queue_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
samples.go Fix missing histogram copy in sampleRing 2024-10-02 13:57:28 +02:00