mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
Fix bad initialisation of sync API notifier in monolith
This commit is contained in:
parent
1a28cf9767
commit
646ce3f88a
|
|
@ -214,8 +214,8 @@ func (m *monolith) setupNotifiers() {
|
||||||
log.Panicf("startup: failed to get latest sync stream position : %s", err)
|
log.Panicf("startup: failed to get latest sync stream position : %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
n := syncapi_sync.NewNotifier(syncapi_types.StreamPosition(pos))
|
m.syncAPINotifier = syncapi_sync.NewNotifier(syncapi_types.StreamPosition(pos))
|
||||||
if err = n.Load(m.syncAPIDB); err != nil {
|
if err = m.syncAPINotifier.Load(m.syncAPIDB); err != nil {
|
||||||
log.Panicf("startup: failed to set up notifier: %s", err)
|
log.Panicf("startup: failed to set up notifier: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue