mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-29 08:18:27 +00:00
Don't panic
This commit is contained in:
parent
bcbe6512a4
commit
faa070bbc2
2 changed files with 12 additions and 1 deletions
|
@ -170,7 +170,7 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
|
||||||
}
|
}
|
||||||
|
|
||||||
if pduPos, err = s.notifyJoinedPeeks(ctx, &ev, pduPos); err != nil {
|
if pduPos, err = s.notifyJoinedPeeks(ctx, &ev, pduPos); err != nil {
|
||||||
logrus.WithError(err).Panicf("Failed to notifyJoinedPeeks for PDU pos %d", pduPos)
|
logrus.WithError(err).Errorf("Failed to notifyJoinedPeeks for PDU pos %d", pduPos)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
11
syncapi/sync/provider.go
Normal file
11
syncapi/sync/provider.go
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
package sync
|
||||||
|
|
||||||
|
import "github.com/matrix-org/dendrite/syncapi/types"
|
||||||
|
|
||||||
|
type SyncProvider interface {
|
||||||
|
WaitFor()
|
||||||
|
}
|
||||||
|
|
||||||
|
type SyncStream interface {
|
||||||
|
GetLatestPosition() types.StreamPosition
|
||||||
|
}
|
Loading…
Reference in a new issue