diff options
author | tjp <tjp@ctrl-c.club> | 2024-01-13 11:29:17 -0700 |
---|---|---|
committer | tjp <tjp@ctrl-c.club> | 2024-01-13 11:29:17 -0700 |
commit | 4d861a2c395c0926b066014b92999d4dda454b2b (patch) | |
tree | 7bbf7d94cec2a5412a68b830c1e5223918d9bc82 /examples/fetch/main.go | |
parent | de1490808fa6e4d6749ff29d20cc1a589ec476d1 (diff) |
dial timeouts for clients, and catch up on test fixes
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) } |