소스 검색

Simplify expression

Tulir Asokan 3 년 전
부모
커밋
87c4cd6c20
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -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