From 57338c32e6b2e178cd19e41d34211646d1d11b6c Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 9 Sep 2024 11:54:57 +0100 Subject: [PATCH] refactor: remove nolint comment --- cmd/tuple/import.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/tuple/import.go b/cmd/tuple/import.go index eb8efda..1b0d2ef 100644 --- a/cmd/tuple/import.go +++ b/cmd/tuple/import.go @@ -31,11 +31,13 @@ import ( "github.com/openfga/cli/internal/output" ) -// MaxTuplesPerWrite Limit the tuples in a single batch. -var MaxTuplesPerWrite = int32(1) +const ( + // MaxTuplesPerWrite Limit the tuples in a single batch. + MaxTuplesPerWrite = 1 -// MaxParallelRequests Limit the parallel writes to the API. -var MaxParallelRequests = int32(10) //nolint:mnd + // MaxParallelRequests Limit the parallel writes to the API. + MaxParallelRequests = 10 +) type failedWriteResponse struct { TupleKey client.ClientTupleKey `json:"tuple_key"`