Simplify expression

This commit is contained in:
Tulir Asokan 2022-07-01 11:17:10 +03:00
parent 7247e9b2e6
commit 87c4cd6c20

View file

@ -3075,7 +3075,7 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *event.Event) {
return
}
messageAge := time.Now().Sub(time.UnixMilli(evt.Timestamp))
messageAge := time.Since(time.UnixMilli(evt.Timestamp))
ms := metricSender{portal: portal}
origEvtID := evt.ID