aboutsummaryrefslogtreecommitdiff
path: root/reachability
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 /reachability
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 'reachability')
-rw-r--r--reachability/reachability.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reachability/reachability.go b/reachability/reachability.go
index 7e34dc32..14bb79cf 100644
--- a/reachability/reachability.go
+++ b/reachability/reachability.go
@@ -10,17 +10,17 @@ import (
//
// It is not safe for concurrent use.
type Reachability struct {
- store objectstore.Store
+ store objectstore.ReadingStore
graph *commitgraphread.Reader
}
// New builds a Reachability over one object store.
-func New(store objectstore.Store) *Reachability {
+func New(store objectstore.ReadingStore) *Reachability {
return &Reachability{store: store}
}
// NewWithCommitGraph builds a Reachability over one object store with an
// optional commit-graph reader for faster commit-domain traversal.
-func NewWithCommitGraph(store objectstore.Store, graph *commitgraphread.Reader) *Reachability {
+func NewWithCommitGraph(store objectstore.ReadingStore, graph *commitgraphread.Reader) *Reachability {
return &Reachability{store: store, graph: graph}
}