use worker pool to limit webhooks to 10 concurrent http executions (#1510) (#1525)

* refactor: use worker pool to limit webhooks to 10 concurrent http executions (#1510)

* chore: try to please go linter
This commit is contained in:
Jannik
2021-11-14 19:02:52 +01:00
committed by GitHub
parent 06f3644b11
commit da199e5775
3 changed files with 87 additions and 42 deletions

View File

@ -14,6 +14,7 @@ import (
"github.com/owncast/owncast/core/rtmp"
"github.com/owncast/owncast/core/transcoder"
"github.com/owncast/owncast/core/user"
"github.com/owncast/owncast/core/webhooks"
"github.com/owncast/owncast/models"
"github.com/owncast/owncast/static"
"github.com/owncast/owncast/utils"
@ -77,6 +78,8 @@ func Start() error {
rtmpPort := data.GetRTMPPortNumber()
log.Infof("RTMP is accepting inbound streams on port %d.", rtmpPort)
webhooks.InitWorkerPool()
return nil
}