Skip to content

Commit

Permalink
Fix incorrect code comments and bug messages (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfisherz authored Feb 3, 2025
1 parent 4aa723d commit 1a5a4ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/authn/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func validateExpiry(token *jwt.Token) error {

// Tokens can only have a validity period of at most 2 hours
if exp.Sub(issuedAt.Time) > MAX_TOKEN_DURATION {
return fmt.Errorf("token is expiration time is greater than the max duration")
return fmt.Errorf("token expiration time is greater than the max duration")
}

// Tokens cannot be expired
Expand Down
2 changes: 1 addition & 1 deletion pkg/blockchain/blockchainPublisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func NewBlockchainPublisher(
logger.Info(fmt.Sprintf("Starting server with blockchain nonce: %d", nonce))

// The nonce is the next ID to be used, not the current highest
// The nonce member variable represents the last recenty used, so it is pending-1
// The nonce member variable represents the last recently used, so it is pending-1
// If the nonce is 0, it will underflow to 18446744073709551615, which at +1 generates the correct next nonce of 0
nonce--

Expand Down

0 comments on commit 1a5a4ae

Please sign in to comment.