From beb671b47342a971b54765b099203a71b89af8ab Mon Sep 17 00:00:00 2001 From: Mike Hurwitz Date: Tue, 18 Jun 2024 18:24:48 -0400 Subject: [PATCH] more goreleaser v2 changes (#31) --- .goreleaser.yml | 2 -- lazylru_benchmark_test.go | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 11ca896..c482639 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,8 +8,6 @@ builds: - skip: true release: - github: - name: TriggerMail/lazylru prerelease: auto changelog: diff --git a/lazylru_benchmark_test.go b/lazylru_benchmark_test.go index 510a6b2..9b2de00 100644 --- a/lazylru_benchmark_test.go +++ b/lazylru_benchmark_test.go @@ -114,7 +114,7 @@ func (bc benchconfig) InterfaceStructPtr(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { ix := i % bc.keyCount - if rand.Float64() < bc.readRate { + if rand.Float64() < bc.readRate { //nolint:gosec // if true { if iv, ok := lru.Get(keys[ix]); !ok { continue @@ -143,7 +143,7 @@ func (bc benchconfig) GenericStructPtr(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { ix := i % bc.keyCount - if rand.Float64() < bc.readRate { + if rand.Float64() < bc.readRate { //nolint:gosec // if true { if v, ok := lru.Get(keys[ix]); !ok { continue @@ -166,7 +166,7 @@ func (bc benchconfig) InterfaceValue(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { ix := i % bc.keyCount - if rand.Float64() < bc.readRate { + if rand.Float64() < bc.readRate { //nolint:gosec // if true { if iv, ok := lru.Get(keys[ix]); !ok { continue