Commit 485a2cfc authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 79f54dcb
......@@ -148,7 +148,6 @@ type Transaction interface {
// XXX +Note, SetUser, ...
// Status returns current status of the transaction.
Status() Status
......@@ -170,7 +169,6 @@ type Transaction interface {
// XXX + Doom?
// ---- part for data managers & friends ----
// XXX move to separate interface?
......@@ -208,7 +206,6 @@ func Current(ctx context.Context) Transaction {
return currentTxn(ctx)
}
// DataManager manages data and can transactionally persist it.
//
// If DataManager is registered to transaction via Transaction.Join, it will
......@@ -261,7 +258,6 @@ type DataManager interface {
// This should never fail.
TPCAbort(ctx context.Context, txn Transaction) // XXX error?
// XXX better do without SortKey - with it it is assumed that
// datamanagers are processed serially.
// SortKey() string
......
......@@ -199,7 +199,6 @@ func (txn *transaction) checkNotYetCompleting(who string) {
}
}
// ---- meta ----
func (txn *transaction) User() string { return txn.user }
......
......@@ -44,7 +44,6 @@ func TestBasic(t *testing.T) {
Current(ctx)
}()
// New
txn, ctx := New(ctx)
if txn_ := Current(ctx); txn_ != txn {
......@@ -52,7 +51,7 @@ func TestBasic(t *testing.T) {
}
// New(!ø) -> panic
func () {
func() {
defer func() {
r := recover()
if r == nil {
......
Markdown is supported
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