aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-16 20:22:09 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-16 20:22:09 +0200
commit5896b5d09cc037059115b2f26ecf272b593369e5 (patch)
tree9da02921a3a3566b2102d11834927ea3d96cefc3 /benchmark
parent0adf505773054a92d77a9c937c8c5e56e74493e0 (diff)
downloadgo-oblast-5896b5d09cc037059115b2f26ecf272b593369e5.tar.gz
take non-pointer records on Insert()
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/benchmark_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/benchmark_test.go b/benchmark/benchmark_test.go
index f026ca6..e2fc05e 100644
--- a/benchmark/benchmark_test.go
+++ b/benchmark/benchmark_test.go
@@ -222,7 +222,8 @@ func BenchmarkInsertAndDeleteOne(b *testing.B) {
insertAndDeleteWithOblast := func(b *testing.B) {
record := OblastEntry{Message: "hello"}
- must.Succeed(b, store.Insert(db, &record))
+ records := must.Return(store.Insert(db, record))(b)
+ record = records[0]
if record.ID == 0 {
b.Errorf("ID was not filled!")
}