refactor: drop two unmaintained dependencies, rename the byte size helpers (#39083)

This commit is contained in:
silverwind authored and GitHub committed 2026-08-27 15:31:20 +00:00
1 parent 3b6ce586a7
commit 66c672d0b7
33 files changed
+197 -180

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"math"
"github.com/dustin/go-humanize"
"gitea.dev/modules/util"
)
// Package registry settings
@@ -100,7 +100,7 @@ func mustBytes(section ConfigSection, key string) int64 {
if value == noLimit {
return -1
}
bytes, err := humanize.ParseBytes(value)
bytes, err := util.ParseByteSize(value)
if err != nil || bytes > math.MaxInt64 {
return -1
}