This commit is contained in:
Zheng Kai
2023-06-06 17:56:14 +08:00
parent 894b62bf29
commit 210c23b633
3 changed files with 25 additions and 4 deletions

View File

@@ -12,6 +12,9 @@ var errSkip = errors.New(`skip`)
// WebHandle ...
func (c *Core) ServeHTTP(w http.ResponseWriter, r *http.Request) {
metrics.ReqConcurrentInc()
defer metrics.ReqConcurrentDec()
p, err := req(w, r)
if err != nil {
if err != errSkip {