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

This commit is contained in:
silverwind
2026-08-27 15:31:20 +00:00
committed by GitHub
parent 3b6ce586a7
commit 66c672d0b7
33 changed files with 197 additions and 180 deletions
+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
}