Commit ccb56eb4 authored by Prajwal Patil's avatar Prajwal Patil
Browse files

dgraph_best_effort_remove

No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -185,8 +185,8 @@ func GetTransaction(hostName string) (*dgo.Txn, error) { ...@@ -185,8 +185,8 @@ func GetTransaction(hostName string) (*dgo.Txn, error) {
// //
// The result is against the provided key in the query. // The result is against the provided key in the query.
func (dg *DGraphDAO) GetData(ctx context.Context, query string, vars map[string]string) ([]byte, error) { func (dg *DGraphDAO) GetData(ctx context.Context, query string, vars map[string]string) ([]byte, error) {
//txn := dg.instance.client.NewReadOnlyTxn().BestEfforts()
txn := dg.instance.client.NewReadOnlyTxn().BestEffort() txn := dg.instance.client.NewReadOnlyTxn()
var ( var (
res *api.Response res *api.Response
err error err error
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment