aboutsummaryrefslogtreecommitdiff
path: root/objectstore/chain/new.go
diff options
context:
space:
mode:
Diffstat (limited to 'objectstore/chain/new.go')
-rw-r--r--objectstore/chain/new.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/objectstore/chain/new.go b/objectstore/chain/new.go
index ca00e9be..887904e3 100644
--- a/objectstore/chain/new.go
+++ b/objectstore/chain/new.go
@@ -3,6 +3,9 @@ package chain
import "codeberg.org/lindenii/furgit/objectstore"
// New creates an ordered object database 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 ...objectstore.Store) *Chain {
return &Chain{
backends: append([]objectstore.Store(nil), backends...),