mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-04-17 06:14:27 -05:00
Make the linter happy?
This commit is contained in:
parent
b41baee892
commit
e5f26edefa
|
@ -112,6 +112,11 @@ func (s *OutputRoomEventConsumer) onMessage(ctx context.Context, msgs []*nats.Ms
|
||||||
event = output.NewInviteEvent.Event
|
event = output.NewInviteEvent.Event
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if event == nil {
|
||||||
|
log.Errorf("userapi consumer: expected event")
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
"event_id": event.EventID(),
|
"event_id": event.EventID(),
|
||||||
"event_type": event.Type(),
|
"event_type": event.Type(),
|
||||||
|
@ -120,11 +125,6 @@ func (s *OutputRoomEventConsumer) onMessage(ctx context.Context, msgs []*nats.Ms
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if event == nil {
|
|
||||||
log.Errorf("userapi consumer: expected event")
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
if s.cfg.Matrix.ReportStats.Enabled {
|
if s.cfg.Matrix.ReportStats.Enabled {
|
||||||
go s.storeMessageStats(ctx, event.Type(), string(event.SenderID()), event.RoomID().String())
|
go s.storeMessageStats(ctx, event.Type(), string(event.SenderID()), event.RoomID().String())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue