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

Merge pull request #69 from dgraph-io/dmuts

Don't log fatal on call to ServeTask. Just return error for that query.
parents c12f4681 34e2b364
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,8 @@ func ProcessTaskOverNetwork(qu []byte) (result []byte, rerr error) {
query.Data = qu
reply := new(conn.Reply)
if err := pool.Call("Worker.ServeTask", query, reply); err != nil {
glog.WithField("call", "Worker.ServeTask").Fatal(err)
glog.WithField("call", "Worker.ServeTask").Error(err)
return []byte(""), err
}
glog.WithField("reply_len", len(reply.Data)).WithField("addr", addr).
WithField("attr", attr).Info("Got reply from server")
......
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