From 87bc5031d11735de822c58140de803bb4479ede6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20SZKIBA?= Date: Mon, 12 Aug 2024 15:29:37 +0200 Subject: [PATCH 1/3] fix: use named error return value to be able to modify from defer function --- cmd/cmd.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 2464f00..2fd17cb 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -80,8 +80,7 @@ func New() (*cobra.Command, error) { } //nolint:forbidigo -func run(ctx context.Context, args []string, opts *options) error { - var result error +func run(ctx context.Context, args []string, opts *options) (result error) { input := os.Stdin From 67cdca311a07e51a65116c86981eb50869930713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20SZKIBA?= Date: Mon, 12 Aug 2024 15:30:17 +0200 Subject: [PATCH 2/3] docs: xk6-client-prometheus-remote is official now --- docs/legacy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/legacy.yaml b/docs/legacy.yaml index 5577f3e..dcbdb6d 100644 --- a/docs/legacy.yaml +++ b/docs/legacy.yaml @@ -104,6 +104,7 @@ - k6/x/smtp - module: github.com/grafana/xk6-client-prometheus-remote description: Test Prometheus Remote Write performance + official: true imports: - k6/x/remotewrite - module: github.com/grafana/xk6-client-tracing From 2f1f664c5532bf7e3788a42562829e3a2c98d7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20SZKIBA?= Date: Mon, 12 Aug 2024 15:31:11 +0200 Subject: [PATCH 3/3] style: linter fix (remove extra newline) --- cmd/cmd.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 2fd17cb..8083b17 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -81,7 +81,6 @@ func New() (*cobra.Command, error) { //nolint:forbidigo func run(ctx context.Context, args []string, opts *options) (result error) { - input := os.Stdin if len(args) > 1 {