rename handlerlog to handlerctx
All checks were successful
build container / build-container (push) Successful in 6m4s
run go test / test (push) Successful in 3m23s

This commit is contained in:
2025-03-03 09:59:19 +08:00
parent 83dfcba4ae
commit e14bcb205b
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ import (
"net/http"
"time"
"git.jeffthecoder.xyz/guochao/cache-proxy/pkgs/middleware/handlerlog"
"git.jeffthecoder.xyz/guochao/cache-proxy/pkgs/middleware/handlerctx"
)
type ctxKey int
@ -43,7 +43,7 @@ func Log(config Config) func(http.Handler) http.Handler {
"path", r.URL.Path,
}
if pattern, handlerFound := handlerlog.Pattern(r); handlerFound {
if pattern, handlerFound := handlerctx.Pattern(r); handlerFound {
args = append(args, "handler", pattern)
}