From c1836fd7d7ebac7daed6e9697e5ed7d5e629ac09 Mon Sep 17 00:00:00 2001 From: Brian Dillmann Date: Mon, 18 May 2026 10:47:39 -0400 Subject: [PATCH] goodhistogram: gofmt benchmark_test.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bring the prometheus.HistogramOpts struct literal into gofmt alignment — NativeHistogramMaxBucketNumber is the longest key, so the surrounding fields need an extra space before their values for the colons to line up. Caught while reviewing PR #5; pre-existing on main, fixing separately to keep that PR's diff focused. Co-Authored-By: roachdev-claude --- benchmark_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark_test.go b/benchmark_test.go index 9f91e99..3c58067 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -54,10 +54,10 @@ func newPromNativeHist() prometheus.Histogram { factor := factorBySchema[benchSchema] buckets := prometheus.ExponentialBucketsRange(benchLo, benchHi, promBucketCount) return prometheus.NewHistogram(prometheus.HistogramOpts{ - Name: "bench", - Help: "benchmark histogram", - Buckets: buckets, - NativeHistogramBucketFactor: factor, + Name: "bench", + Help: "benchmark histogram", + Buckets: buckets, + NativeHistogramBucketFactor: factor, NativeHistogramMaxBucketNumber: 1000, }) }