From 7ddaf1eb2fde11a9e07df0215646c1dca08ccc50 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 22 Mar 2026 22:07:39 +0000 Subject: refstore, repository: Ownership/lifetimes fix --- refstore/batch.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'refstore/batch.go') diff --git a/refstore/batch.go b/refstore/batch.go index 6352159c..b170916b 100644 --- a/refstore/batch.go +++ b/refstore/batch.go @@ -34,8 +34,12 @@ type Batch interface { // Apply validates and applies queued operations, returning one result per // queued operation in order. Fatal backend failures are returned separately. + // + // Apply is terminal. Further use of the batch is undefined behavior. Apply() ([]BatchResult, error) // Abort abandons the batch and releases any resources it holds. + // + // Abort is terminal. Further use of the batch is undefined behavior. Abort() error } -- cgit v1.3.1-10-gc9f91