Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: Consolidate parsing URLs. #569

Merged
merged 1 commit into from
Dec 14, 2016

Conversation

harshavardhana
Copy link
Member

@harshavardhana harshavardhana commented Dec 13, 2016

This patch consolidates url parsing and parses endpoint once.

Fixes #530

@@ -41,6 +41,9 @@ import (
type Client struct {
/// Standard options.

// Parsed endpoint url provided by the user.
endpointURL *url.URL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better:
endpointURL url.URL
as this is never supposed to be mutated.

@harshavardhana harshavardhana merged commit d02caa6 into minio:master Dec 14, 2016
@harshavardhana harshavardhana deleted the parse-url branch December 14, 2016 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants