summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-04-08 11:51:24 +0200
committerLibravatar GitHub <noreply@github.com>2023-04-08 11:51:24 +0200
commitfb41d2d48ff5448ae9797c0b3a31e595b73e49a6 (patch)
tree0dbb8f5ca6e02867552b34fc851ce530c7a1342b
parent[bugfix] visibility caching and hometimeline (#1675) (diff)
downloadgotosocial-fb41d2d48ff5448ae9797c0b3a31e595b73e49a6.tar.xz
[bugfix] warn on maxprocs error instead of failing (#1678)
* [bugfix] warn on maxprocs error instead of failing * info instead of warn
-rw-r--r--cmd/gotosocial/action/server/server.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go
index cb580ebcc..b4329fec7 100644
--- a/cmd/gotosocial/action/server/server.go
+++ b/cmd/gotosocial/action/server/server.go
@@ -59,9 +59,8 @@ import (
// Start creates and starts a gotosocial server
var Start action.GTSAction = func(ctx context.Context) error {
- _, err := maxprocs.Set(maxprocs.Logger(nil))
- if err != nil {
- return fmt.Errorf("failed to set CPU limits from cgroup: %s", err)
+ if _, err := maxprocs.Set(maxprocs.Logger(nil)); err != nil {
+ log.Infof(ctx, "could not set CPU limits from cgroup: %s", err)
}
var state state.State