You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NB(directxman12): we can't set Transport *and* use TLS options,
57
-
// so we grab the transport right after it gets created so that we can
58
-
// type-assert on it (hopefully)?
59
-
// hopefully this doesn't break 🤞
60
-
transport, isTransport:=rt.(*http.Transport)
61
-
if!isTransport {
62
-
panic(fmt.Sprintf("wasn't able to grab underlying transport from REST client's RoundTripper, can't figure out how to close keep-alives: expected an *http.Transport, got %#v", rt))
// NB(directxman12): we can't set Transport *and* use TLS options,
57
-
// so we grab the transport right after it gets created so that we can
58
-
// type-assert on it (hopefully)?
59
-
// hopefully this doesn't break 🤞
60
-
transport, isTransport:=rt.(*http.Transport)
61
-
if!isTransport {
62
-
panic(fmt.Sprintf("wasn't able to grab underlying transport from REST client's RoundTripper, can't figure out how to close keep-alives: expected an *http.Transport, got %#v", rt))
0 commit comments