diff --git a/README.md b/README.md index c2232de5..8a336d62 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@
[PocketBase](https://pocketbase.io) is an open source Go backend, consisting of: @@ -152,7 +152,3 @@ PocketBase has a [roadmap](https://github.com/orgs/pocketbase/projects/2) and I Don't get upset if I close your PR, even if it is well executed and tested. This doesn't mean that it will never be merged. Later we can always refer to it and/or take pieces of your implementation when the time comes to work on the issue (don't worry you'll be credited in the release notes). - -> [!NOTE] -> PocketBase was initially created to serve as a new backend for my other open source project - [Presentator](https://presentator.io) (see [#183](https://github.com/presentator/presentator/issues/183)), -> so all feature requests will be first aligned with what we need for Presentator v3. diff --git a/apis/file.go b/apis/file.go index 363b9640..154aea68 100644 --- a/apis/file.go +++ b/apis/file.go @@ -30,7 +30,7 @@ var defaultThumbSizes = []string{"100x100"} func bindFileApi(app core.App, rg *echo.Group) { api := fileApi{ app: app, - thumbGenSem: semaphore.NewWeighted(int64(runtime.NumCPU() + 1)), // the value is arbitrary chosen and may change in the future + thumbGenSem: semaphore.NewWeighted(int64(runtime.NumCPU() + 2)), // the value is arbitrary chosen and may change in the future thumbGenPending: new(singleflight.Group), thumbGenMaxWait: 60 * time.Second, }