Skip to content

Commit

Permalink
feat: HTTP only host
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvduroiu committed Aug 29, 2024
1 parent 65970cb commit dbe642c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pinecone/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (h *Handler) CreateIndex(w http.ResponseWriter, r *http.Request) {
State: "Ready",
}
}
index.Host = r.Host
index.Host = fmt.Sprintf("http://%s", r.Host)
index.Namespaces = make(map[string]map[string]*Vector)

h.Index = &index
Expand Down
2 changes: 1 addition & 1 deletion pinecone/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type IndexStatus struct {

type Index struct {
Name string `json:"name"`
Dimension int64 `json:"dimension"`
Dimension int `json:"dimension"`
Metric string `json:"metric"`
Status IndexStatus `json:"status"`
Host string `json:"host"`
Expand Down

0 comments on commit dbe642c

Please sign in to comment.