1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-20 02:57:05 +00:00

Rename client.WithOptTransport (#464)

* Update apiv1_client_opts.go
* Update apiv1_client_test.go
This commit is contained in:
James Hillyerd
2024-01-25 10:06:35 -08:00
committed by GitHub
parent b5ccd3da51
commit 6d66012a0c
2 changed files with 3 additions and 3 deletions

View File

@@ -29,10 +29,10 @@ func (t transportOption) apply(opts *options) {
opts.transport = t.transport
}
// WithOptTransport sets the transport for the rest client.
// WithTransport sets the transport for the rest client.
// Transport specifies the mechanism by which individual
// HTTP requests are made.
// If nil, http.DefaultTransport is used.
func WithOptTransport(transport http.RoundTripper) Option {
func WithTransport(transport http.RoundTripper) Option {
return transportOption{transport}
}