From 675073813779c2578dec9be46bf0814091631507 Mon Sep 17 00:00:00 2001 From: ziggie Date: Wed, 4 Mar 2026 19:38:25 +0100 Subject: [PATCH] sqldb: fix GetInvoice call in benchmarks GetInvoice was removed and replaced with GetInvoiceByHash, GetInvoiceByAddr, etc. Update the sqlite benchmarks to use GetInvoiceByHash instead. --- sqldb/sqlite_bench_test.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/sqldb/sqlite_bench_test.go b/sqldb/sqlite_bench_test.go index bc5cea3ac..168ef96b7 100644 --- a/sqldb/sqlite_bench_test.go +++ b/sqldb/sqlite_bench_test.go @@ -93,12 +93,7 @@ func BenchmarkSqliteMaxConns(b *testing.B) { hash := hashes[i%numInvoices] i++ - _, err := store.GetInvoice( - ctx, - sqlc.GetInvoiceParams{ - Hash: hash, - }, - ) + _, err := store.GetInvoiceByHash(ctx, hash) if err != nil { require.ErrorIs(b, err, sql.ErrNoRows) } @@ -182,11 +177,8 @@ func BenchmarkSqliteMaxConnsConcurrentReads(b *testing.B) { defer wg.Done() hash := hashes[g%numInvoices] - _, err := store.GetInvoice( - ctx, - sqlc.GetInvoiceParams{ - Hash: hash, - }, + _, err := store.GetInvoiceByHash( + ctx, hash, ) if err != nil && err != sql.ErrNoRows {