mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
fix(spooler): fast start (#1023)
This commit is contained in:
parent
2331b8a4c0
commit
d6c9707ad0
@ -50,10 +50,12 @@ func (s *Spooler) Start() {
|
||||
}
|
||||
}(i)
|
||||
}
|
||||
for _, handler := range s.handlers {
|
||||
handler := &spooledHandler{Handler: handler, locker: s.locker, queuedAt: time.Now(), eventstore: s.eventstore}
|
||||
s.queue <- handler
|
||||
}
|
||||
go func() {
|
||||
for _, handler := range s.handlers {
|
||||
handler := &spooledHandler{Handler: handler, locker: s.locker, queuedAt: time.Now(), eventstore: s.eventstore}
|
||||
s.queue <- handler
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
func requeueTask(task *spooledHandler, queue chan<- *spooledHandler) {
|
||||
|
Loading…
Reference in New Issue
Block a user