提交 03dd456b 编写于 作者: B Brendan Abolivier 提交者: Kegsay

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

上级 1a28cf97
......@@ -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)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册