Skip to content

Commit

Permalink
fix const type (#3792)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav authored Dec 18, 2024
1 parent 2e7218d commit 72b1de6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/gitparse/gitparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const (
defaultDateFormat = "Mon Jan 2 15:04:05 2006 -0700"

// defaultMaxDiffSize is the maximum size for a diff. Larger diffs will be cut off.
defaultMaxDiffSize = 2 * 1024 * 1024 * 1024 // 2GB
defaultMaxDiffSize int64 = 2 * 1024 * 1024 * 1024 // 2GB

// defaultMaxCommitSize is the maximum size for a commit. Larger commits will be cut off.
defaultMaxCommitSize = 2 * 1024 * 1024 * 1024 // 2GB
defaultMaxCommitSize int64 = 2 * 1024 * 1024 * 1024 // 2GB
)

// contentWriter defines a common interface for writing, reading, and managing diff content.
Expand Down Expand Up @@ -210,8 +210,8 @@ type Option func(*Parser)
func NewParser(options ...Option) *Parser {
parser := &Parser{
dateFormat: defaultDateFormat,
maxDiffSize: defaultMaxDiffSize,
maxCommitSize: defaultMaxCommitSize,
maxDiffSize: int(defaultMaxDiffSize),
maxCommitSize: int(defaultMaxCommitSize),
}
for _, option := range options {
option(parser)
Expand Down

0 comments on commit 72b1de6

Please sign in to comment.