chore: remove unnecessary code (#2754)

This commit is contained in:
chen quan
2023-01-05 22:12:07 +08:00
committed by GitHub
parent 69d355eb4b
commit 21c49009c0
2 changed files with 6 additions and 9 deletions

View File

@@ -7,7 +7,6 @@ import (
"fmt"
"io"
"net/http"
"net/http/httptrace"
nurl "net/url"
"strings"
@@ -176,11 +175,6 @@ func request(r *http.Request, cli client) (*http.Response, error) {
respHandlers[i] = h
}
clientTrace := httptrace.ContextClientTrace(ctx)
if clientTrace != nil {
ctx = httptrace.WithClientTrace(ctx, clientTrace)
}
r = r.WithContext(ctx)
propagator.Inject(ctx, propagation.HeaderCarrier(r.Header))