aboutsummaryrefslogtreecommitdiff
path: root/refstore/chain/new.go
diff options
context:
space:
mode:
Diffstat (limited to 'refstore/chain/new.go')
-rw-r--r--refstore/chain/new.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/refstore/chain/new.go b/refstore/chain/new.go
index ebf5e2bb..f8bdcb13 100644
--- a/refstore/chain/new.go
+++ b/refstore/chain/new.go
@@ -3,6 +3,9 @@ package chain
import "codeberg.org/lindenii/furgit/refstore"
// New creates an ordered reference store chain.
+//
+// The provided backends must be non-nil and distinct.
+// Chain borrows the provided backends and does not close them in Close.
func New(backends ...refstore.ReadingStore) *Chain {
return &Chain{
backends: append([]refstore.ReadingStore(nil), backends...),