mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-29 15:38:52 +00:00
feat: pub sub (#1341)
* fix: pub sub * fix: adaot config to commands (and queries) * remove dependency on vv2 in v1 * fix: pub sub in new eventstore * fix tests Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
@@ -38,8 +38,10 @@ func newIAMMember(handler handler) *IAMMember {
|
||||
|
||||
func (m *IAMMember) subscribe() {
|
||||
m.subscription = m.es.Subscribe(m.AggregateTypes()...)
|
||||
|
||||
go func() {
|
||||
for event := range m.subscription.Events {
|
||||
|
||||
query.ReduceEvent(m, event)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user