Skip to content

Commit

Permalink
clarify code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Mar 1, 2019
1 parent bfd3484 commit 8e9b063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/consul/acl_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ var validPolicyName = regexp.MustCompile(`^[A-Za-z0-9\-_]{1,128}$`)

const (
// maxTokenExpirationDuration is the maximum difference allowed between
// ACLToken CreateTime and ExpirationTime values.
// ACLToken CreateTime and ExpirationTime values if ExpirationTime is set.
maxTokenExpirationDuration = 24 * time.Hour

// minTokenExpirationDuration is the minimum difference allowed between
// ACLToken CreateTime and ExpirationTime values.
// ACLToken CreateTime and ExpirationTime values if ExpirationTime is set.
minTokenExpirationDuration = 1 * time.Minute
)

Expand Down

0 comments on commit 8e9b063

Please sign in to comment.