From 800241acb62a7418f8bf2acd5815caa8aea2e565 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Thu, 9 Feb 2023 17:05:42 -0500 Subject: [PATCH] make MaxUUIDsPerWriteRequest constant --- nomad/structs/uuid.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/structs/uuid.go b/nomad/structs/uuid.go index f983fd7b491..64beeacd89d 100644 --- a/nomad/structs/uuid.go +++ b/nomad/structs/uuid.go @@ -3,5 +3,5 @@ package structs // MaxUUIDsPerWriteRequest is the maximum number of UUIDs that can be included // within a single write request. This is to ensure that the Raft message does // not become too large. The resulting value corresponds to 0.25MB of IDs or -// 7282 UUID strings. -var MaxUUIDsPerWriteRequest = (1024 * 256) / 36 +// 7281 UUID strings. +const MaxUUIDsPerWriteRequest = 7281 // (1024 * 256) / 36