aboutsummaryrefslogtreecommitdiff
path: root/ref/store/reading.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 15:43:50 +0000
committerGravatar Runxi Yu2026-03-29 15:45:18 +0000
commitf50ac551c56569e109a8350f27dab53bb2378d4d (patch)
tree0d48976ffaab3455c0c26e2840cb88d2c8d4a3d4 /ref/store/reading.go
parentci: Disable dupl (diff)
signatureNo signature
*: 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.
Diffstat (limited to 'ref/store/reading.go')
-rw-r--r--ref/store/reading.go6
1 files changed, 0 insertions, 6 deletions
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
}