Adding minor review comments
@@ -48,7 +48,7 @@ type storageClientConfig struct {
// NewStorageHandle returns the handle of Go storage client containing
// customized http client. We can configure the http client using the
// storageClientConfig parameter.
-func NewStorageHandle(ctx context.Context, clientConfig storageClientConfig) (_ StorageHandle, err error) {
+func NewStorageHandle(ctx context.Context, clientConfig storageClientConfig) (sh StorageHandle, err error) {
var transport *http.Transport
// Disabling the http2 makes the client more performant.
if clientConfig.disableHTTP2 {
@@ -94,7 +94,8 @@ func NewStorageHandle(ctx context.Context, clientConfig storageClientConfig) (_
}),
storage.WithPolicy(storage.RetryAlways))
- return &storageClient{client: sc}, err
+ sh = &storageClient{client: sc}
+ return
}
func (sh *storageClient) BucketHandle(bucketName string) (bh *bucketHandle, err error) {
