From 0199caef381ff95db5db39ea6f9e7a600cb7793a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 19 Feb 2026 23:19:20 +0100 Subject: [PATCH 1/2] Remove no longer required nolint --- pkg/objects/source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/objects/source.go b/pkg/objects/source.go index 4afcefc7..848eab79 100644 --- a/pkg/objects/source.go +++ b/pkg/objects/source.go @@ -168,7 +168,7 @@ func (u *URLSource) Validate(name string) (result []error) { // Connect implements the Source interface. func (u *URLSource) Connect(_ context.Context, name string) error { - tlsConfig := &tls.Config{} //nolint:gosec // only used in HTTP client, where stdlib auto-chooses strong TLS versions + tlsConfig := &tls.Config{} if u.ClientCertificatePath != "" { // Load client cert From 3822200ed8f8598a2c1856631fdefda4c8b68e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 23 Feb 2026 16:29:17 +0100 Subject: [PATCH 2/2] Return in error case when counting metrics --- pkg/actors/report.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/actors/report.go b/pkg/actors/report.go index 82129c7c..17bf5565 100644 --- a/pkg/actors/report.go +++ b/pkg/actors/report.go @@ -122,6 +122,7 @@ func (r *Report) Run(ctx context.Context) { gaugeU64 = func(bucket string, value uint64) { if value > math.MaxInt64 { logg.Error("statsd: value %d for bucket %q is out of range for int64", value, bucket) + return } gaugeI64(bucket, int64(value)) }