Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 06:00 UTC
cmd: upgrade automemlimit to v1.0.0 (#7978)
v1.0.0 renamed SetGoMemLimitWithOpts to Set and dropped the other Set* helpers. The options this call passes are unchanged, as are the 0.9 default ratio and the AUTOMEMLIMIT handling, so behavior is the same. Only the already-deprecated AUTOMEMLIMIT_DEBUG and AUTOMEMLIMIT_EXPERIMENT environment variables are gone, and neither is used here.
Kévin Dunglas committed
Aug 31, 2026 at 18:18 UTC
d0e93c23a1ca0e542916392c401a13d6870b8204
3 files changed
+4
-4
cmd/main.go
+1
-1
@@ -482,7 +482,7 @@ func setResourceLimits(logger *zap.Logger) func() {
482
483
// Configure the maximum memory to use to match the Linux container quota (if any) or system memory
484
// See https://pkg.go.dev/runtime/debug#SetMemoryLimit
485
- _, _ = memlimit.SetGoMemLimitWithOpts(
485
+ _, _ = memlimit.Set(
486
memlimit.WithLogger(
487
slog.New(zapslog.NewHandler(
488
logger.Core(),
go.mod
+1
-1
@@ -5,7 +5,7 @@ go 1.25.1
5
require (
6
github.com/BurntSushi/toml v1.6.0
7
github.com/DeRuina/timberjack v1.4.5
8
- github.com/KimMachineGun/automemlimit v0.7.5
8
+ github.com/KimMachineGun/automemlimit v1.0.0
9
github.com/Masterminds/sprig/v3 v3.3.0
10
github.com/alecthomas/chroma/v2 v2.27.0
11
github.com/aryann/difflib v0.0.0-20210328193216-ff5ff6dc229b
go.sum
+2
-2
@@ -30,8 +30,8 @@ github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk
30
github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
31
github.com/DeRuina/timberjack v1.4.5 h1:F/kms5MPNAXUeWdOILt5ALC6iDHWNRPevaeIVH7tqYU=
32
github.com/DeRuina/timberjack v1.4.5/go.mod h1:RLoeQrwrCGIEF8gO5nV5b/gMD0QIy7bzQhBUgpp1EqE=
33
-github.com/KimMachineGun/automemlimit v0.7.5 h1:RkbaC0MwhjL1ZuBKunGDjE/ggwAX43DwZrJqVwyveTk=
34
-github.com/KimMachineGun/automemlimit v0.7.5/go.mod h1:QZxpHaGOQoYvFhv/r4u3U0JTC2ZcOwbSr11UZF46UBM=
33
+github.com/KimMachineGun/automemlimit v1.0.0 h1:+MqlvDE/pkJNjk1rU+O14QsH8k10nJAD0frB0lsxyvw=
34
+github.com/KimMachineGun/automemlimit v1.0.0/go.mod h1:n+BSXxQWDFS1DKh67Rqo0lgTsowsg6x65ak5uyngML0=
35
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
36
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
37
github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0=