From 39c89e281d94f2c197e1209ee2ae3b80adf57f7d Mon Sep 17 00:00:00 2001 From: stefan miller Date: Tue, 7 Jan 2025 10:44:19 +0100 Subject: [PATCH] v1.12.9 --- RELEASENOTES.md | 3 +++ cmd/bulkbench/benchmark_test.go | 2 +- driver/driver.go | 2 +- driver/ping_test.go | 2 +- prometheus/go.mod | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index a724fc4..a6a8af2 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -5,6 +5,9 @@ Release Notes ### Minor revisions +#### v1.12.9 +- fixed linter issues + #### v1.12.6 - v1.12.8 - updated dependencies diff --git a/cmd/bulkbench/benchmark_test.go b/cmd/bulkbench/benchmark_test.go index fe7c695..4b39bf8 100644 --- a/cmd/bulkbench/benchmark_test.go +++ b/cmd/bulkbench/benchmark_test.go @@ -25,7 +25,7 @@ func Benchmark(b *testing.B) { var avgDuration, maxDuration time.Duration var minDuration time.Duration = 1<<63 - 1 - for i := 0; i < b.N; i++ { + for i := range b.N { tr := ts.execute(sequential, batchCount, batchSize, drop) if tr.Err != nil { b.Fatal(tr.Err) diff --git a/driver/driver.go b/driver/driver.go index fc87c43..3c8131d 100644 --- a/driver/driver.go +++ b/driver/driver.go @@ -10,7 +10,7 @@ import ( ) // DriverVersion is the version number of the hdb driver. -const DriverVersion = "1.12.8" +const DriverVersion = "1.12.9" // DriverName is the driver name to use with sql.Open for hdb databases. const DriverName = "hdb" diff --git a/driver/ping_test.go b/driver/ping_test.go index 8e1dab2..78da7b2 100644 --- a/driver/ping_test.go +++ b/driver/ping_test.go @@ -16,7 +16,7 @@ func benchmarkPing(b *testing.B) { } func benchmarkPingSeq(b *testing.B) { - for i := 0; i < b.N; i++ { + for range b.N { benchmarkPing(b) } } diff --git a/prometheus/go.mod b/prometheus/go.mod index 668ecc0..62ed2e9 100644 --- a/prometheus/go.mod +++ b/prometheus/go.mod @@ -7,7 +7,7 @@ toolchain go1.23.4 // replace github.com/SAP/go-hdb => .. require ( - github.com/SAP/go-hdb v1.12.8 + github.com/SAP/go-hdb v1.12.9 github.com/prometheus/client_golang v1.20.5 )