mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-21 20:23:41 +09: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