Method
InTx
(fn func(database.Store) error, opts *database.TxOptions)
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | func (w *wrapUpsertDB) InTx(fn func(database.Store) error, opts *database.TxOptions) error { |
| 41 | return w.Store.InTx(func(tx database.Store) error { |
| 42 | return fn(&wrapUpsertDB{Store: tx, resume: w.resume}) |
| 43 | }, opts) |
| 44 | } |
| 45 | |
| 46 | func (w *wrapUpsertDB) UpsertTemplateUsageStats(ctx context.Context) error { |
| 47 | <-w.resume |
Callers
nothing calls this directly
Tested by
no test coverage detected