chore: remove unnecessary code (#2754)
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user