mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
Panic if we cannot keep room state updated
This commit is contained in:
parent
254b207a92
commit
f480c32038
|
|
@ -64,7 +64,8 @@ func (s *Server) onMessage(msg *sarama.ConsumerMessage) error {
|
|||
}).Info("received event from roomserver")
|
||||
|
||||
if err := s.db.WriteEvent(&ev, output.AddsStateEventIDs, output.RemovesStateEventIDs); err != nil {
|
||||
log.WithError(err).Errorf("roomserver output log: write event failure")
|
||||
// panic rather than continue with an inconsistent database
|
||||
log.WithError(err).WithField("OutputRoomEvent", output).Panicf("roomserver output log: write event failure")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue