This commit is contained in:
chenjiekun
2023-03-02 20:18:09 +08:00
parent a077ec7a20
commit 81dbcdca32
9 changed files with 35 additions and 108 deletions

View File

@@ -54,8 +54,8 @@ func (h *httpHandler) ServeHTTP(ctx eocontext.EoContext) {
ctx = wsCtx
}
//set retry timeout
ctx.WithValue(http_complete.KeyHttpRetry, h.retry)
ctx.WithValue(http_complete.KeyHttpTimeout, h.timeout)
ctx.WithValue(http_context.KeyHttpRetry, h.retry)
ctx.WithValue(http_context.KeyHttpTimeout, h.timeout)
//Set Label
ctx.SetLabel("api", h.routerName)