Fix bad initialisation of sync API notifier in monolith

This commit is contained in:
Brendan Abolivier 2017-08-04 14:24:26 +01:00
parent 1a28cf9767
commit 646ce3f88a
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

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