aboutsummaryrefslogtreecommitdiff
path: root/reachability/reachability.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-31 03:19:39 +0000
committerGravatar Runxi Yu2026-03-31 03:20:13 +0000
commitb82af688be4d94245c4a7eb730b12348b08b414b (patch)
treebcd7d9cdb87a5ee2644aafe64429def860f500fe /reachability/reachability.go
parentcommitquery: Error handling cleanup after the fetcher port (diff)
signatureNo signature
reachability: Use fetcher and clean up some legacy helper stuff
Diffstat (limited to 'reachability/reachability.go')
-rw-r--r--reachability/reachability.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/reachability/reachability.go b/reachability/reachability.go
index 6a0f2583..fd4d00e5 100644
--- a/reachability/reachability.go
+++ b/reachability/reachability.go
@@ -2,21 +2,21 @@ package reachability
import (
commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
- objectstore "codeberg.org/lindenii/furgit/object/store"
+ objectfetch "codeberg.org/lindenii/furgit/object/fetch"
)
// Reachability provides graph traversal over objects in one object store.
//
// Labels: MT-Safe.
type Reachability struct {
- store objectstore.Reader
- graph *commitgraphread.Reader
+ fetcher *objectfetch.Fetcher
+ graph *commitgraphread.Reader
}
-// New builds a Reachability over one object store with an optional
+// New builds a Reachability over one object fetcher with an optional
// commit-graph reader for faster commit-domain traversal.
//
// Labels: Deps-Borrowed, Life-Parent.
-func New(store objectstore.Reader, graph *commitgraphread.Reader) *Reachability {
- return &Reachability{store: store, graph: graph}
+func New(fetcher *objectfetch.Fetcher, graph *commitgraphread.Reader) *Reachability {
+ return &Reachability{fetcher: fetcher, graph: graph}
}