Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Aug 26, 2024
1 parent d4e93bc commit bbf4d0d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/k8s/pkg/k8sd/database/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func CheckWorkerNodeToken(ctx context.Context, tx *sql.Tx, nodeName string, toke
if selectTxStmt.QueryRowContext(ctx, token).Scan(&tokenNodeName, &expiry) == nil {
isValidToken := tokenNodeName == "" || subtle.ConstantTimeCompare([]byte(nodeName), []byte(tokenNodeName)) == 1
notExpired := time.Now().Before(expiry)
fmt.Printf("isValidToken: %v, notExpired: %v\n", isValidToken, notExpired)
return isValidToken && notExpired, nil
}
return false, nil
Expand Down

0 comments on commit bbf4d0d

Please sign in to comment.