Skip to content

Commit

Permalink
make MaxUUIDsPerWriteRequest constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Feb 10, 2023
1 parent 99d78e5 commit 800241a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/structs/uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 800241a

Please sign in to comment.