Skip to content

Commit 72b1de6

Browse files
authored
fix const type (#3792)
1 parent 2e7218d commit 72b1de6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/gitparse/gitparse.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const (
2525
defaultDateFormat = "Mon Jan 2 15:04:05 2006 -0700"
2626

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

3030
// defaultMaxCommitSize is the maximum size for a commit. Larger commits will be cut off.
31-
defaultMaxCommitSize = 2 * 1024 * 1024 * 1024 // 2GB
31+
defaultMaxCommitSize int64 = 2 * 1024 * 1024 * 1024 // 2GB
3232
)
3333

3434
// contentWriter defines a common interface for writing, reading, and managing diff content.
@@ -210,8 +210,8 @@ type Option func(*Parser)
210210
func NewParser(options ...Option) *Parser {
211211
parser := &Parser{
212212
dateFormat: defaultDateFormat,
213-
maxDiffSize: defaultMaxDiffSize,
214-
maxCommitSize: defaultMaxCommitSize,
213+
maxDiffSize: int(defaultMaxDiffSize),
214+
maxCommitSize: int(defaultMaxCommitSize),
215215
}
216216
for _, option := range options {
217217
option(parser)

0 commit comments

Comments
 (0)