Permalink
Browse files

go-couchbase API update

  • Loading branch information...
1 parent fe0411a commit 94c1e93712470f43cb40e2282af1b9a9fec107b3 @dustin dustin committed Oct 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 http_api.go
View
@@ -280,7 +280,8 @@ func doGetFramesData(w http.ResponseWriter, req *http.Request) {
func proxyViewRequest(w http.ResponseWriter, req *http.Request,
path string) {
- node := couchbase.Nodes[rand.Intn(len(couchbase.Nodes))]
+ nodes := couchbase.Nodes()
+ node := nodes[rand.Intn(len(nodes))]
u, err := url.Parse(node.CouchAPIBase)
if err != nil {
w.WriteHeader(http.StatusBadGateway)

0 comments on commit 94c1e93

Please sign in to comment.