Method
withStoreView
(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error)
Source from the content-addressed store, hash-verified
| 227 | } |
| 228 | |
| 229 | func (l *local) withStoreView(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error) error { |
| 230 | return l.db.View(l.withStore(ctx, fn)) |
| 231 | } |
| 232 | |
| 233 | func (l *local) withStoreUpdate(ctx context.Context, fn func(ctx context.Context, store namespaces.Store) error) error { |
| 234 | return l.db.Update(l.withStore(ctx, fn)) |
Tested by
no test coverage detected