mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 11:56:57 +08:00
* refactor: use worker pool to limit webhooks to 10 concurrent http executions (#1510) * chore: try to please go linter
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user