From d16f20aee0aa10759d3e785ac93c9f601e7cd281 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 28 Jan 2019 17:51:34 -0800 Subject: [PATCH] remove io.Closer from the transaction interface Transactions shouldn't have to implement Close. --- datastore.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datastore.go b/datastore.go index 3fb2d62..439acb2 100644 --- a/datastore.go +++ b/datastore.go @@ -171,7 +171,8 @@ type TTLDatastore interface { // Commit has been made. Likewise, transactions can be aborted by calling // Discard before a successful Commit has been made. type Txn interface { - Datastore + Read + Write // Commit finalizes a transaction, attempting to commit it to the Datastore. // May return an error if the transaction has gone stale. The presence of an