diff options
Diffstat (limited to 'examples/fetch/main.go')
-rw-r--r-- | examples/fetch/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/fetch/main.go b/examples/fetch/main.go index 8f03114..d70c941 100644 --- a/examples/fetch/main.go +++ b/examples/fetch/main.go @@ -1,6 +1,7 @@ package main import ( + "context" "fmt" "io" "log" @@ -33,7 +34,7 @@ func main() { request := &sr.Request{URL: buildURL(os.Args[1])} // fetch the response - response, err := client.RoundTrip(request) + response, err := client.RoundTrip(context.Background(), request) if err != nil { log.Fatal(err) } |