From ccb56eb48adb8cca521b32df7d56289c98b3180d Mon Sep 17 00:00:00 2001
From: prajwalp <prajwalp@mkcl.org>
Date: Thu, 22 Sep 2022 10:12:17 +0530
Subject: [PATCH] dgraph_best_effort_remove

---
 dalmdl/dgraph/dgraph.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dalmdl/dgraph/dgraph.go b/dalmdl/dgraph/dgraph.go
index d78c245..286cf61 100644
--- a/dalmdl/dgraph/dgraph.go
+++ b/dalmdl/dgraph/dgraph.go
@@ -185,8 +185,8 @@ func GetTransaction(hostName string) (*dgo.Txn, error) {
 //
 // 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) {
-
-	txn := dg.instance.client.NewReadOnlyTxn().BestEffort()
+	//txn := dg.instance.client.NewReadOnlyTxn().BestEfforts()
+	txn := dg.instance.client.NewReadOnlyTxn()
 	var (
 		res *api.Response
 		err error
-- 
GitLab