Don't panic

This commit is contained in:
Neil Alexander 2020-09-08 14:07:59 +01:00
parent bcbe6512a4
commit faa070bbc2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 12 additions and 1 deletions

View file

@ -170,7 +170,7 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent(
}
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
}

11
syncapi/sync/provider.go Normal file
View 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
}