txn.Discard() doesn't discard a Txn but commits the data

Moved from GitHub dgo/63

Posted by jostillmanns:

Prior to #39 txn.Discard() aborted a transaction. Now the data is commited. Maybe I am misunderstanding the API but the behavior did change after #39 was merged. In particular, Added function to login with refresh token etc by gitlw · Pull Request #39 · dgraph-io/dgo · GitHub introduced the breaking change.

danielmai commented :

Wow, this is not good. Thanks for reporting this issue, @jostillmanns. This will be fixed by #64.