File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -71,25 +71,6 @@ func NewDgraphClient(clients ...api.DgraphClient) *Dgraph {
7171 return dg
7272}
7373
74- // DialSlashEndpoint is deprecated. It will be removed in the 21.07 release.
75- // Use DialCloud to connect to Dgraph Cloud backend.
76- func DialSlashEndpoint (endpoint , key string ) (* grpc.ClientConn , error ) {
77- return DialCloud (endpoint , key )
78- }
79-
80- // DialSlashGraphQLEndpoint is deprecated, as it leaks GRPC connections.
81- // It will be removed in the 21.07 release. Please use DialCloud instead.
82- func DialSlashGraphQLEndpoint (endpoint , key string ) (* Dgraph , error ) {
83- conn , err := DialCloud (endpoint , key )
84- if err != nil {
85- return nil , err
86- }
87-
88- dc := api .NewDgraphClient (conn )
89- dg := NewDgraphClient (dc )
90- return dg , nil
91- }
92-
9374// DialCloud creates a new TLS connection to a Dgraph Cloud backend
9475//
9576// It requires the backend endpoint as well as the api token
You can’t perform that action at this time.
0 commit comments