fix: Filter retry requests in statistics

This commit is contained in:
tbphp committed 2025-08-24 18:07:26 +08:00
1 parent 830c9461bf
commit 25c0d4bfd9
1 file changed
+3
+3
View File
@@ -239,6 +239,9 @@ func (s *RequestLogService) writeLogsToDB(logs []*models.RequestLog) error {
GroupID uint
}]struct{ Success, Failure int64 })
for _, log := range logs {
if log.RequestType == models.RequestTypeRetry {
continue
}
hourlyTime := log.Timestamp.Truncate(time.Hour)
key := struct {
Time time.Time