aboutsummaryrefslogtreecommitdiff
path: root/object/store/chain/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/store/chain/reader.go')
-rw-r--r--object/store/chain/reader.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/object/store/chain/reader.go b/object/store/chain/reader.go
index 2e0f317e..e7f07c33 100644
--- a/object/store/chain/reader.go
+++ b/object/store/chain/reader.go
@@ -31,7 +31,7 @@ func (chain *Chain) ReadReaderFull(id id.ObjectID) (io.ReadCloser, error) {
// ReadReaderContent reads an object's type, declared content length,
// and content stream from the first backend that has it.
-func (chain *Chain) ReadReaderContent(id id.ObjectID) (typ.Type, uint64, io.ReadCloser, error) {
+func (chain *Chain) ReadReaderContent(id id.ObjectID) (typ.Type, int, io.ReadCloser, error) {
for _, backend := range chain.backends {
ty, size, reader, err := backend.ReadReaderContent(id)
if err == nil {
@@ -42,8 +42,8 @@ func (chain *Chain) ReadReaderContent(id id.ObjectID) (typ.Type, uint64, io.Read
continue
}
- return typ.TypeUnknown, 0, nil, fmt.Errorf("object/store/chain: read reader content: %w", err)
+ return typ.Unknown, 0, nil, fmt.Errorf("object/store/chain: read reader content: %w", err)
}
- return typ.TypeUnknown, 0, nil, store.ErrObjectNotFound
+ return typ.Unknown, 0, nil, store.ErrObjectNotFound
}