Skip to content

Commit

Permalink
Fix ledgerentry benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed May 14, 2024
1 parent fcd2f05 commit 3c54ea3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/soroban-rpc/internal/db/ledgerentry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ func benchmarkLedgerEntry(b *testing.B, cached bool) {
tx, err := NewReadWriter(db, 150, 15).NewTx(context.Background())
assert.NoError(b, err)
assert.NoError(b, tx.LedgerEntryWriter().UpsertLedgerEntry(entry))
expLedgerKey, err := entryKeyToTTLEntryKey(key)
assert.NoError(b, err)
assert.NoError(b, tx.LedgerEntryWriter().UpsertLedgerEntry(getTTLLedgerEntry(expLedgerKey)))
assert.NoError(b, tx.Commit(2))
reader := NewLedgerEntryReader(db)
const numQueriesPerOp = 15
Expand Down

0 comments on commit 3c54ea3

Please sign in to comment.