Skip to content

Commit

Permalink
remove deadcode
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Dec 16, 2022
1 parent 7d1d587 commit f05a856
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions datastore/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,3 @@ func (txn *txn) runSuccessFns(ctx context.Context) {
fn()
}
}

// Shim to make ds.Txn support ds.Datastore
type ShimTxnStore struct {
ds.Txn
}

func (ts ShimTxnStore) Sync(ctx context.Context, prefix ds.Key) error {
return ts.Txn.Commit(ctx)
}

func (ts ShimTxnStore) Close() error {
ts.Discard(context.TODO())
return nil
}

0 comments on commit f05a856

Please sign in to comment.