Skip to content
Snippets Groups Projects
Commit c06961f7 authored by Manish R Jain's avatar Manish R Jain
Browse files

Set timeout to a minute

parent 6a7a4b37
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,7 @@ func queryHandler(w http.ResponseWriter, r *http.Request) { ...@@ -177,7 +177,7 @@ func queryHandler(w http.ResponseWriter, r *http.Request) {
glog.WithField("q", string(q)).Debug("Query parsed.") glog.WithField("q", string(q)).Debug("Query parsed.")
rch := make(chan error) rch := make(chan error)
go query.ProcessGraph(sg, rch, time.Second) go query.ProcessGraph(sg, rch, time.Minute)
err = <-rch err = <-rch
if err != nil { if err != nil {
x.Err(glog, err).Error("While executing query") x.Err(glog, err).Error("While executing query")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment