examples/client: Use context
This commit is contained in:
parent
3f4fd10b6d
commit
28b6232fbf
@ -7,6 +7,7 @@ package main
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/x509"
|
||||
"errors"
|
||||
"fmt"
|
||||
@ -90,7 +91,7 @@ func do(req *gemini.Request, via []*gemini.Request) (*gemini.Response, error) {
|
||||
client := gemini.Client{
|
||||
TrustCertificate: trustCertificate,
|
||||
}
|
||||
resp, err := client.Do(req)
|
||||
resp, err := client.Do(context.Background(), req)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user