mirror of
https://github.com/go-gitea/gitea
synced 2025-11-02 12:28:25 +00:00
chore: rename to Init
This commit is contained in:
@@ -23,11 +23,6 @@ type jobUpdate struct {
|
||||
RunID int64
|
||||
}
|
||||
|
||||
func InitJobEmitter() {
|
||||
jobEmitterQueue = queue.CreateUniqueQueue("bots_ready_job", jobEmitterQueueHandle, new(jobUpdate))
|
||||
go graceful.GetManager().RunWithShutdownFns(jobEmitterQueue.Run)
|
||||
}
|
||||
|
||||
func EmitJobsIfReady(runID int64) error {
|
||||
err := jobEmitterQueue.Push(&jobUpdate{
|
||||
RunID: runID,
|
||||
|
||||
Reference in New Issue
Block a user