commit 1ca5c62e25d00e054a8e4bf4d8a06c3e69cae85f
parent 68e6d08c768b789987a753d42f66caf73ce10ee1
Author: Daenney <daenney@users.noreply.github.com>
Date: Fri, 17 Feb 2023 12:31:34 +0100
[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()`.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go
@@ -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)
}