Skip to content

Commit adce802

Browse files
authored
remove deprecated DialSlashEndpoint, DialSlashGraphQLEndpoint (#157)
1 parent 97e23a2 commit adce802

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

client.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)