diff options
| author | 2026-03-07 19:37:20 +0800 | |
|---|---|---|
| committer | 2026-03-07 19:37:20 +0800 | |
| commit | 563a4dfb78aaa97febd0763e9f81a740af0dd666 (patch) | |
| tree | f7ede5d05f1363021fa5b1902e9e569c2b274bf1 /refstore/files/batch_abort.go | |
| parent | refstore: Batch should also be staged (diff) | |
| signature | No signature | |
refstore/files: Implement batching
Diffstat (limited to 'refstore/files/batch_abort.go')
| -rw-r--r-- | refstore/files/batch_abort.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/refstore/files/batch_abort.go b/refstore/files/batch_abort.go new file mode 100644 index 00000000..74aaa439 --- /dev/null +++ b/refstore/files/batch_abort.go @@ -0,0 +1,13 @@ +package files + +import "errors" + +func (batch *Batch) Abort() error { + if batch.closed { + return errors.New("refstore/files: batch already closed") + } + + batch.closed = true + + return nil +} |
