From 677887b7aa3d673bd92a7876f3987cd2f86cb43d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 21 Feb 2026 02:30:23 +0800 Subject: objectstore: Rename ObjectStore to Store --- objectstore/chain/chain.go | 6 +++--- objectstore/objectstore.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'objectstore') diff --git a/objectstore/chain/chain.go b/objectstore/chain/chain.go index f11e3f67..337e2a2e 100644 --- a/objectstore/chain/chain.go +++ b/objectstore/chain/chain.go @@ -13,13 +13,13 @@ import ( // Chain queries multiple object databases in order. type Chain struct { - backends []objectstore.ObjectStore + backends []objectstore.Store } // New creates an ordered object database chain. -func New(backends ...objectstore.ObjectStore) *Chain { +func New(backends ...objectstore.Store) *Chain { return &Chain{ - backends: append([]objectstore.ObjectStore(nil), backends...), + backends: append([]objectstore.Store(nil), backends...), } } diff --git a/objectstore/objectstore.go b/objectstore/objectstore.go index ea906c70..3d58adf5 100644 --- a/objectstore/objectstore.go +++ b/objectstore/objectstore.go @@ -13,8 +13,8 @@ import ( // TODO: This might need to be an interface or otherwise be able to encapsulate multiple concrete backends' var ErrObjectNotFound = errors.New("objectstore: object not found") -// ObjectStore reads Git objects by object ID. -type ObjectStore interface { +// Store reads Git objects by object ID. +type Store interface { // ReadBytesFull reads a full serialized object as "type size\\x00content". // If hashed with the same algorithm it MUST match the object ID. ReadBytesFull(id objectid.ObjectID) ([]byte, error) -- cgit v1.3.1-10-gc9f91