Compare commits

...

1 Commits

Author SHA1 Message Date
7cd7fb0c0a disable logging for automaxprocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-11-20 22:35:36 +03:00

View File

@ -6,7 +6,7 @@ import (
"sync"
"github.com/KimMachineGun/automemlimit/memlimit"
_ "go.uber.org/automaxprocs"
"go.uber.org/automaxprocs/maxprocs"
"go.unistack.org/micro/v3/broker"
"go.unistack.org/micro/v3/client"
"go.unistack.org/micro/v3/config"
@ -20,6 +20,7 @@ import (
)
func init() {
maxprocs.Set()
memlimit.SetGoMemLimitWithOpts(
memlimit.WithRatio(0.9),
memlimit.WithProvider(