Fix bad initialisation of sync API notifier in monolith (#176)

main
Brendan Abolivier 2017-08-04 14:54:08 +01:00 committed by Kegsay
parent 1a28cf9767
commit 03dd456b47
1 changed files with 2 additions and 2 deletions

View File

@ -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)
} }
} }