aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/fetcher.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-28 16:46:30 +0000
committerGravatar Runxi Yu2026-03-28 16:46:30 +0000
commitf87db5f65f61709a44e111fc47bfbb0865b2067b (patch)
treed2da282f2df4596784692bf47b1f1efd8c4e2714 /object/fetch/fetcher.go
parentobject/{blob,commit,tag}: Update docs (diff)
signatureNo signature
object/fetch: Update docs and rename resolver->fetcher
Diffstat (limited to 'object/fetch/fetcher.go')
-rw-r--r--object/fetch/fetcher.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/fetch/fetcher.go b/object/fetch/fetcher.go
index b3787480..895b32f7 100644
--- a/object/fetch/fetcher.go
+++ b/object/fetch/fetcher.go
@@ -4,14 +4,14 @@ import objectstore "codeberg.org/lindenii/furgit/object/store"
// Fetcher resolves parsed and streamed objects from an object store.
//
-// A Fetcher does not take ownership of the store and does not close it.
+// Labels: MT-Safe.
type Fetcher struct {
store objectstore.ReadingStore
}
// New returns a Fetcher that reads objects from store.
//
-// The returned Fetcher does not take ownership of store.
+// Labels: Deps-Borrowed.
func New(store objectstore.ReadingStore) *Fetcher {
return &Fetcher{store: store}
}