From 28b6232fbfa5a4f29c8775a675f39a06e2476703 Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 20 Feb 2021 15:39:47 -0500 Subject: [PATCH] examples/client: Use context --- examples/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/client.go b/examples/client.go index 14abe27..a7cc274 100644 --- a/examples/client.go +++ b/examples/client.go @@ -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 }