[bug] maxprocs set logger to nil (#1512)

We want to set the Logger to nil, but that means we still need to wrap
it in `maxprocs.Logger()`.
This commit is contained in:
Daenney 2023-02-17 12:31:34 +01:00 committed by GitHub
parent 68e6d08c76
commit 1ca5c62e25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ import (
// Start creates and starts a gotosocial server
var Start action.GTSAction = func(ctx context.Context) error {
_, err := maxprocs.Set(nil)
_, err := maxprocs.Set(maxprocs.Logger(nil))
if err != nil {
return fmt.Errorf("failed to set CPU limits from cgroup: %s", err)
}