mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 09:42:27 -05:00
[chore]: Bump github.com/KimMachineGun/automemlimit from 0.2.6 to 0.3.0 (#2165)
This commit is contained in:
parent
13f1c85e70
commit
e6407ec95c
7 changed files with 116 additions and 186 deletions
5
vendor/github.com/KimMachineGun/automemlimit/README.md
generated
vendored
5
vendor/github.com/KimMachineGun/automemlimit/README.md
generated
vendored
|
|
@ -32,6 +32,11 @@ package main
|
|||
import "github.com/KimMachineGun/automemlimit/memlimit"
|
||||
|
||||
func init() {
|
||||
memlimit.SetGoMemLimitWithOpts(
|
||||
memlimit.WithRatio(0.9),
|
||||
memlimit.WithEnv(),
|
||||
memlimit.WithProvider(memlimit.FromCgroup),
|
||||
)
|
||||
memlimit.SetGoMemLimitWithEnv()
|
||||
memlimit.SetGoMemLimit(0.9)
|
||||
memlimit.SetGoMemLimitWithProvider(memlimit.Limit(1024*1024), 0.9)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue