From f50ac551c56569e109a8350f27dab53bb2378d4d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 15:43:50 +0000 Subject: *: Remove Close from object/ref store interfaces At places where you own the object, you should have the literal implementation with Close. If you're using it via the interface, then you probably don't own that store, and you shouldn't be closing it. Thanks to Michael Muré from git-bug for this point. --- ref/store/reading.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ref') diff --git a/ref/store/reading.go b/ref/store/reading.go index 99f8278c..07814c00 100644 --- a/ref/store/reading.go +++ b/ref/store/reading.go @@ -31,10 +31,4 @@ type ReadingStore interface { // // Labels: Life-Parent. List(pattern string) ([]ref.Ref, error) - // Close releases resources associated with the store. - // - // Transactions and batches borrowing the store are invalid after Close. - // - // Labels: MT-Unsafe. - Close() error } -- cgit v1.3.1-10-gc9f91