rpc error: code = Unavailable desc = connection closed in Go code
问题 I am working on Dgraph and Go integration.I am trying to access Dgraph query in Go and for that I am using github.com/dgraph-io/dgo library. Here is the code : package main import ( "bytes" "context" "fmt" "io/ioutil" "log" "github.com/dgraph-io/dgo" "github.com/dgraph-io/dgo/protos/api" "google.golang.org/grpc" ) func main() { query := `{ people(func: has(name)) { name follows{ name } } }` conn, err := grpc.Dial("x.x.x.x:8000", grpc.WithInsecure()) if err != nil { log.Fatal(err) } ctx :=