From dca993ed3c5be9941ebf5f5685583128c6dcb737 Mon Sep 17 00:00:00 2001 From: Kyle Eckhart Date: Wed, 25 Feb 2026 16:52:37 -0500 Subject: [PATCH] Missing period and left over refactor Signed-off-by: Kyle Eckhart --- tsdb/agent/db.go | 2 +- tsdb/agent/db_test.go | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tsdb/agent/db.go b/tsdb/agent/db.go index 93a9d1e712..f7e83ae7dd 100644 --- a/tsdb/agent/db.go +++ b/tsdb/agent/db.go @@ -558,7 +558,7 @@ func (db *DB) loadWAL(r *wlog.Reader, duplicateRefToValidRef map[chunks.HeadSeri if !created { // We don't need to check if entry.Ref exists / if the value is not series.ref because GetOrSet // enforces that the same labels will always get the same Ref. If we did not create a new ref - // the only possible ref it should ever be in the WAL is series.ref + // the only possible ref it should ever be in the WAL is series.ref. duplicateRefToValidRef[entry.Ref] = series.ref // We want to track the largest segment where we encountered the duplicate ref, so we can ensure diff --git a/tsdb/agent/db_test.go b/tsdb/agent/db_test.go index c0d600785c..e6b8cadc22 100644 --- a/tsdb/agent/db_test.go +++ b/tsdb/agent/db_test.go @@ -88,15 +88,11 @@ func TestDB_InvalidSeries(t *testing.T) { }) } -func createTestAgentDB(t testing.TB, reg prometheus.Registerer, opts *Options, dir ...string) *DB { +func createTestAgentDB(t testing.TB, reg prometheus.Registerer, opts *Options) *DB { t.Helper() dbDir := t.TempDir() - if len(dir) > 0 && dir[0] != "" { - dbDir = dir[0] - } - rs := remote.NewStorage(promslog.NewNopLogger(), reg, startTime, dbDir, time.Second*30, nil, false) t.Cleanup(func() { require.NoError(t, rs.Close())