mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 11:41:38 +00:00
Fix bad initialisation of sync API notifier in monolith (#176)
This commit is contained in:
parent
1a28cf9767
commit
03dd456b47
@ -214,8 +214,8 @@ func (m *monolith) setupNotifiers() {
|
||||
log.Panicf("startup: failed to get latest sync stream position : %s", err)
|
||||
}
|
||||
|
||||
n := syncapi_sync.NewNotifier(syncapi_types.StreamPosition(pos))
|
||||
if err = n.Load(m.syncAPIDB); err != nil {
|
||||
m.syncAPINotifier = syncapi_sync.NewNotifier(syncapi_types.StreamPosition(pos))
|
||||
if err = m.syncAPINotifier.Load(m.syncAPIDB); err != nil {
|
||||
log.Panicf("startup: failed to set up notifier: %s", err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user