aboutsummaryrefslogtreecommitdiff
path: root/object/fetch
diff options
context:
space:
mode:
Diffstat (limited to 'object/fetch')
-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}
}