From 03dd456b4733213adef7d62b484ab204d1b1147f Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Fri, 4 Aug 2017 14:54:08 +0100 Subject: [PATCH] Fix bad initialisation of sync API notifier in monolith (#176) --- .../matrix-org/dendrite/cmd/dendrite-monolith-server/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go b/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go index 720d3b99..1a265df7 100644 --- a/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go +++ b/src/github.com/matrix-org/dendrite/cmd/dendrite-monolith-server/main.go @@ -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) } }