refactor: remove metrics from server and database

This commit is contained in:
2026-06-23 15:09:01 +02:00
committed by Milas Holsting
parent a014ad40a9
commit 18861593f8
8 changed files with 16 additions and 27 deletions

View File

@@ -4,7 +4,6 @@ import (
"context"
"database/sql"
"mal/internal/db"
"mal/internal/observability"
"testing"
_ "github.com/mattn/go-sqlite3"
@@ -64,7 +63,7 @@ func TestCleanupExpiredJikanCache(t *testing.T) {
}
}
cleanupExpiredJikanCache(ctx, db.New(sqlDB), observability.NewMetrics())
cleanupExpiredJikanCache(ctx, db.New(sqlDB))
keys := jikanCacheKeys(ctx, t, sqlDB)
if len(keys) != 1 || keys[0] != "fresh" {