mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-12 03:28:10 -07:00
Rename RequestsBlocked to ClientErrors and remove special cases from tracker code
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ func (s *Server) stats(w http.ResponseWriter, r *http.Request, p httprouter.Para
|
||||
func handleError(err error, w *Writer) (int, error) {
|
||||
if _, ok := err.(*models.ClientError); ok {
|
||||
w.WriteError(err)
|
||||
stats.RecordEvent(stats.BlockedRequest)
|
||||
stats.RecordEvent(stats.ClientError)
|
||||
return http.StatusOK, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user