We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6617c93 commit 89fb49cCopy full SHA for 89fb49c
examples/basic-client/client.go
@@ -105,6 +105,9 @@ func main() {
105
ctxClient, cancelClient := context.WithCancel(context.Background())
106
defer cancelClient()
107
tlsConfig, err = client.GetClientTLSConfig(ctxClient, sign, pk)
108
+ if err != nil {
109
+ panic(err)
110
+ }
111
// An http.Client will need to create a transport first
112
_ = &http.Client{
113
Transport: &http.Transport{
@@ -127,6 +130,9 @@ func main() {
127
130
ctxTransport, cancelTransport := context.WithCancel(context.Background())
128
131
defer cancelTransport()
129
132
tr, err = client.Transport(ctxTransport, sign, pk)
133
134
135
136
// And http.Client will use the transport like
137
138
Transport: tr,
0 commit comments