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/reading.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'refstore/reading.go') diff --git a/refstore/reading.go b/refstore/reading.go index c302f350..98a5bd51 100644 --- a/refstore/reading.go +++ b/refstore/reading.go @@ -25,5 +25,8 @@ type ReadingStore interface { // The exact pattern language is backend-defined. List(pattern string) ([]ref.Ref, error) // Close releases resources associated with the store. + // + // Repeated calls to Close are undefined behavior unless the implementation + // explicitly documents otherwise. Close() error } -- cgit v1.3.1-10-gc9f91