From 563a4dfb78aaa97febd0763e9f81a740af0dd666 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 7 Mar 2026 19:37:20 +0800 Subject: refstore/files: Implement batching --- refstore/files/batch_abort.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 refstore/files/batch_abort.go (limited to 'refstore/files/batch_abort.go') 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 +} -- cgit v1.3.1-10-gc9f91