prometheus/tsdb/wlog
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
..
checkpoint.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
checkpoint_test.go Merge pull request #17029 from pr00se/wal-checkpoint-dropped-samples 2025-08-20 11:15:10 +01:00
live_reader.go fix(remote): Unregister metrics emitted by remote.WriteStorage when closed (#16868) 2025-07-17 11:32:15 +02:00
reader.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
reader_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
watcher.go fix(remote): Unregister metrics emitted by remote.WriteStorage when closed (#16868) 2025-07-17 11:32:15 +02:00
watcher_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
wlog.go Add util/compression package to consolidate snappy/zstd use in Prometheus. (#16156) 2025-03-10 10:36:26 +00:00
wlog_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00