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_queue.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 refstore/files/batch_queue.go (limited to 'refstore/files/batch_queue.go') diff --git a/refstore/files/batch_queue.go b/refstore/files/batch_queue.go new file mode 100644 index 00000000..4a3b3cf1 --- /dev/null +++ b/refstore/files/batch_queue.go @@ -0,0 +1,9 @@ +package files + +func (batch *Batch) queue(op txOp) { + if batch.closed { + return + } + + batch.ops = append(batch.ops, op) +} -- cgit v1.3.1-10-gc9f91