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: 0 additions & 4 deletions internal/api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ type Client struct {
// Option customizes a Client.
type Option func(*Client)

// WithHTTPClient replaces the underlying *http.Client (e.g. for a custom
// transport). The caller owns the timeout configuration.
func WithHTTPClient(h *http.Client) Option { return func(c *Client) { c.http = h } }

// WithSleep replaces the backoff sleep function — a test seam so retry tests
// assert waits instead of serving them.
func WithSleep(fn func(time.Duration)) Option { return func(c *Client) { c.sleep = fn } }
Expand Down