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

.

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