diff options
| author | 2026-03-27 09:08:40 +0000 | |
|---|---|---|
| committer | 2026-03-27 09:08:40 +0000 | |
| commit | d7e90798170265b37ea5f980f94ca310cfda3180 (patch) | |
| tree | 89921ca5cb6dd5aaefa3c0ae72352381261cb1e6 /reachability | |
| parent | CONTRIBUTING: Fix submitting changes deadlines (diff) | |
| signature | No signature | |
object/store: Rename from object/storer
Diffstat (limited to 'reachability')
| -rw-r--r-- | reachability/helpers.go | 6 | ||||
| -rw-r--r-- | reachability/reachability.go | 8 | ||||
| -rw-r--r-- | reachability/unit_test.go | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/reachability/helpers.go b/reachability/helpers.go index 8d9eea6a..d2459f36 100644 --- a/reachability/helpers.go +++ b/reachability/helpers.go @@ -6,7 +6,7 @@ import ( giterrors "codeberg.org/lindenii/furgit/errors" objectid "codeberg.org/lindenii/furgit/object/id" - objectstorer "codeberg.org/lindenii/furgit/object/storer" + objectstore "codeberg.org/lindenii/furgit/object/store" objecttype "codeberg.org/lindenii/furgit/object/type" ) @@ -39,7 +39,7 @@ func (walk *Walk) readHeaderType(id objectid.ObjectID) (objecttype.Type, error) func (r *Reachability) readHeaderType(id objectid.ObjectID) (objecttype.Type, error) { ty, _, err := r.store.ReadHeader(id) if err != nil { - if errors.Is(err, objectstorer.ErrObjectNotFound) { + if errors.Is(err, objectstore.ErrObjectNotFound) { return objecttype.TypeInvalid, &giterrors.ObjectMissingError{OID: id} } @@ -61,7 +61,7 @@ func (walk *Walk) readBytesContent(id objectid.ObjectID) ([]byte, error) { func (r *Reachability) readBytesContent(id objectid.ObjectID) ([]byte, error) { _, content, err := r.store.ReadBytesContent(id) if err != nil { - if errors.Is(err, objectstorer.ErrObjectNotFound) { + if errors.Is(err, objectstore.ErrObjectNotFound) { return nil, &giterrors.ObjectMissingError{OID: id} } diff --git a/reachability/reachability.go b/reachability/reachability.go index 31947525..7e34dc32 100644 --- a/reachability/reachability.go +++ b/reachability/reachability.go @@ -3,24 +3,24 @@ package reachability import ( commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" - objectstorer "codeberg.org/lindenii/furgit/object/storer" + objectstore "codeberg.org/lindenii/furgit/object/store" ) // Reachability provides graph traversal over objects in one object store. // // It is not safe for concurrent use. type Reachability struct { - store objectstorer.Store + store objectstore.Store graph *commitgraphread.Reader } // New builds a Reachability over one object store. -func New(store objectstorer.Store) *Reachability { +func New(store objectstore.Store) *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 objectstorer.Store, graph *commitgraphread.Reader) *Reachability { +func NewWithCommitGraph(store objectstore.Store, graph *commitgraphread.Reader) *Reachability { return &Reachability{store: store, graph: graph} } diff --git a/reachability/unit_test.go b/reachability/unit_test.go index db9a5c26..dcd5350b 100644 --- a/reachability/unit_test.go +++ b/reachability/unit_test.go @@ -10,7 +10,7 @@ import ( giterrors "codeberg.org/lindenii/furgit/errors" "codeberg.org/lindenii/furgit/internal/testgit" objectid "codeberg.org/lindenii/furgit/object/id" - "codeberg.org/lindenii/furgit/object/storer/memory" + "codeberg.org/lindenii/furgit/object/store/memory" "codeberg.org/lindenii/furgit/object/tree" objecttype "codeberg.org/lindenii/furgit/object/type" "codeberg.org/lindenii/furgit/reachability" |
