Skip to content

Commit

Permalink
storage/http: specify default behavior upon nil Roundtripper
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Bruno <[email protected]>
  • Loading branch information
lucab committed Jul 6, 2017
1 parent 2d62c61 commit b3ce04b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/httpstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ type HTTPStore struct {
roundTrip http.RoundTripper
}

// NewHTTPStore initializes a new store against a URL and a number of configuration options
// NewHTTPStore initializes a new store against a URL and a number of configuration options.
//
// In case of a nil `roundTrip`, a default offline store is used instead.
func NewHTTPStore(baseURL, metaPrefix, metaExtension, keyExtension string, roundTrip http.RoundTripper) (RemoteStore, error) {
base, err := url.Parse(baseURL)
if err != nil {
Expand Down

0 comments on commit b3ce04b

Please sign in to comment.