Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
var d net.Dialer
return d.DialContext(ctx, network, addr)
},
ReadIdleTimeout: 30 * time.Second,
PingTimeout: 10 * time.Second,
}
)

Expand All @@ -58,7 +60,7 @@

// HttpService returns a Service which sends requests via the given net/http RoundTripper.
// Only use this if you need to do something custom at the transport level.
func HttpService(rt http.RoundTripper) Service {

Check failure on line 63 in client.go

View workflow job for this annotation

GitHub Actions / test (1.23.x, ubuntu-latest)

func HttpService should be HTTPService

Check failure on line 63 in client.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

func HttpService should be HTTPService
return func(req Request) Response {
ctx := req.unwrappedContext()
httpRsp, err := rt.RoundTrip(req.Request.WithContext(ctx))
Expand Down Expand Up @@ -106,7 +108,7 @@
// Send round-trips the request via the default Client. It does not block, instead returning a ResponseFuture
// representing the asynchronous operation to produce the response. It is equivalent to:
//
// SendVia(req, Client)
// SendVia(req, Client)
func Send(req Request) *ResponseFuture {
return SendVia(req, Client)
}
Expand Down
Loading