mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix(auth): spooler locks correct database (#1134)
This commit is contained in:
parent
a6c4702b8e
commit
28c8274eab
@ -77,12 +77,6 @@ func Register(configs Configs, bulkLimit, errorCount uint64, view *view.View, es
|
||||
}
|
||||
}
|
||||
|
||||
func subscribe(es eventstore.Eventstore, handlers []query.Handler) {
|
||||
for _, handler := range handlers {
|
||||
es.Subscribe(handler.AggregateTypes()...)
|
||||
}
|
||||
}
|
||||
|
||||
func (configs Configs) cycleDuration(viewModel string) time.Duration {
|
||||
c, ok := configs[viewModel]
|
||||
if !ok {
|
||||
|
@ -2,12 +2,13 @@ package spooler
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
es_locker "github.com/caos/zitadel/internal/eventstore/locker"
|
||||
"time"
|
||||
|
||||
es_locker "github.com/caos/zitadel/internal/eventstore/locker"
|
||||
)
|
||||
|
||||
const (
|
||||
lockTable = "management.locks"
|
||||
lockTable = "auth.locks"
|
||||
)
|
||||
|
||||
type locker struct {
|
||||
|
Loading…
Reference in New Issue
Block a user