aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/fetcher.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-28 04:19:44 +0000
committerGravatar Runxi Yu2026-03-28 04:20:29 +0000
commit402ef2733813d128631ca4aea18c2908c74340d5 (patch)
treee03a90b6f41411bd62e7339390802c5c50082850 /object/fetch/fetcher.go
parentobject/store: Rename from object/storer (diff)
signatureNo signature
object/store: Rename back from storer; rename Store to ReadingStore v0.1.118
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 b0c3d099..b3787480 100644
--- a/object/fetch/fetcher.go
+++ b/object/fetch/fetcher.go
@@ -6,12 +6,12 @@ import objectstore "codeberg.org/lindenii/furgit/object/store"
//
// A Fetcher does not take ownership of the store and does not close it.
type Fetcher struct {
- store objectstore.Store
+ store objectstore.ReadingStore
}
// New returns a Fetcher that reads objects from store.
//
// The returned Fetcher does not take ownership of store.
-func New(store objectstore.Store) *Fetcher {
+func New(store objectstore.ReadingStore) *Fetcher {
return &Fetcher{store: store}
}