Skip to content

Commit

Permalink
Return ensureURLScheme back to original name
Browse files Browse the repository at this point in the history
  • Loading branch information
aulorbe committed Jun 24, 2024
1 parent 7eda45c commit d63c4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pinecone/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func NewClientBase(in NewClientBaseParams) (*Client, error) {

controlHostOverride := valueOrFallback(in.Host, os.Getenv("PINECONE_CONTROLLER_HOST"))
if controlHostOverride != "" {
controlHostOverride, err = ensureURLSchema(controlHostOverride)
controlHostOverride, err = ensureURLScheme(controlHostOverride)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -1157,7 +1157,7 @@ func buildClientBaseOptions(in NewClientBaseParams) []control.ClientOption {
return clientOptions
}

func ensureURLSchema(inputURL string) (string, error) {
func ensureURLScheme(inputURL string) (string, error) {
parsedURL, err := url.Parse(inputURL)
if err != nil {
return "", fmt.Errorf("invalid URL: %v", err)
Expand Down

0 comments on commit d63c4cc

Please sign in to comment.