mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-28 10:08:11 -07:00
Rename RequestsBlocked to ClientErrors and remove special cases from tracker code
This commit is contained in:
+4
-4
@@ -32,8 +32,8 @@ const (
|
||||
ClosedConnection
|
||||
|
||||
HandledRequest
|
||||
BlockedRequest
|
||||
ErroredRequest
|
||||
ClientError
|
||||
|
||||
ResponseTime
|
||||
)
|
||||
@@ -83,7 +83,7 @@ type Stats struct {
|
||||
|
||||
RequestsHandled uint64 `json:"requests_handled"`
|
||||
RequestsErrored uint64 `json:"requests_errored"`
|
||||
RequestsBlocked uint64 `json:"requests_blocked"`
|
||||
ClientErrors uint64 `json:"client_errors"`
|
||||
|
||||
ResponseTime PercentileTimes `json:"response_time"`
|
||||
MemStats *MemStatsWrapper `json:"mem,omitempty"`
|
||||
@@ -200,8 +200,8 @@ func (s *Stats) handleEvent(event int) {
|
||||
case HandledRequest:
|
||||
s.RequestsHandled++
|
||||
|
||||
case BlockedRequest:
|
||||
s.RequestsBlocked++
|
||||
case ClientError:
|
||||
s.ClientErrors++
|
||||
|
||||
case ErroredRequest:
|
||||
s.RequestsErrored++
|
||||
|
||||
Reference in New Issue
Block a user