Skip to content

Commit fb41d2d

Browse files
authored
[bugfix] warn on maxprocs error instead of failing (#1678)
* [bugfix] warn on maxprocs error instead of failing * info instead of warn
1 parent e46323c commit fb41d2d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/gotosocial/action/server/server.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ import (
5959

6060
// Start creates and starts a gotosocial server
6161
var Start action.GTSAction = func(ctx context.Context) error {
62-
_, err := maxprocs.Set(maxprocs.Logger(nil))
63-
if err != nil {
64-
return fmt.Errorf("failed to set CPU limits from cgroup: %s", err)
62+
if _, err := maxprocs.Set(maxprocs.Logger(nil)); err != nil {
63+
log.Infof(ctx, "could not set CPU limits from cgroup: %s", err)
6564
}
6665

6766
var state state.State

0 commit comments

Comments
 (0)