aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/blob.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-08 07:35:30 +0000
committerGravatar Runxi Yu2026-06-08 07:35:30 +0000
commit037fbb24cd91e4804a8c66849f66592dbcbc007b (patch)
tree0fa9af4a761384f2e0e578609ccff493cdcf0912 /object/fetch/blob.go
parentobject/fetch: Fix tag's error import (diff)
object/fetch: Fix size types
Diffstat (limited to 'object/fetch/blob.go')
-rw-r--r--object/fetch/blob.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/fetch/blob.go b/object/fetch/blob.go
index 199bede3..581fff90 100644
--- a/object/fetch/blob.go
+++ b/object/fetch/blob.go
@@ -32,7 +32,7 @@ func (fetcher *Fetcher) ExactBlob(id oid.ObjectID) (*stored.Stored[*blob.Blob],
// together with its content size in bytes.
//
// Labels: Life-Parent, Close-Caller.
-func (fetcher *Fetcher) ExactBlobReader(id oid.ObjectID) (io.ReadCloser, int64, error) {
+func (fetcher *Fetcher) ExactBlobReader(id oid.ObjectID) (io.ReadCloser, uint64, error) {
return fetcher.exactReader(id, typ.TypeBlob)
}
@@ -87,7 +87,7 @@ func (fetcher *Fetcher) PeelToBlobID(id oid.ObjectID) (oid.ObjectID, error) {
// together with its content size in bytes.
//
// Labels: Life-Parent, Close-Caller.
-func (fetcher *Fetcher) PeelToBlobReader(id oid.ObjectID) (io.ReadCloser, int64, error) {
+func (fetcher *Fetcher) PeelToBlobReader(id oid.ObjectID) (io.ReadCloser, uint64, error) {
blobID, err := fetcher.PeelToBlobID(id)
if err != nil {
return nil, 0, err