You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-11-29 23:07:40 +02:00
Use Ubser's maxproc to treat CPU quotas
This commit is contained in:
3
main.go
3
main.go
@@ -9,6 +9,7 @@ import (
|
||||
"time"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
"go.uber.org/automaxprocs/maxprocs"
|
||||
|
||||
"github.com/imgproxy/imgproxy/v3/config"
|
||||
"github.com/imgproxy/imgproxy/v3/errorreport"
|
||||
@@ -27,6 +28,8 @@ func initialize() error {
|
||||
return err
|
||||
}
|
||||
|
||||
maxprocs.Set(maxprocs.Logger(log.Debugf))
|
||||
|
||||
if err := config.Configure(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user