diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-20 01:08:12 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-20 01:08:12 -0400 |
commit | 6777286ba15d5bd05d0fcd9921049761bf2f59c0 (patch) | |
tree | bbb47bcda4f98ebbf0cfa9c49a21b1077ff675cf /pkg/api/api0/storage.go | |
parent | f0051d99fd62a3776987bb25cf7f147022c2b93b (diff) | |
download | Atlas-6777286ba15d5bd05d0fcd9921049761bf2f59c0.tar.gz Atlas-6777286ba15d5bd05d0fcd9921049761bf2f59c0.zip |
all: Make PdataStorage SetPdata return the stored pdata size
Diffstat (limited to 'pkg/api/api0/storage.go')
-rw-r--r-- | pkg/api/api0/storage.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/api0/storage.go b/pkg/api/api0/storage.go index 3fe7378..a6de4cd 100644 --- a/pkg/api/api0/storage.go +++ b/pkg/api/api0/storage.go @@ -61,6 +61,6 @@ type PdataStorage interface { // matches, buf is nil. If another error occurs, err is non-nil. GetPdataCached(uid uint64, sha [sha256.Size]byte) (buf []byte, exists bool, err error) - // SetPdata sets the raw pdata for uid. - SetPdata(uid uint64, buf []byte) (err error) + // SetPdata sets the raw pdata for uid, returning the actual size stored. + SetPdata(uid uint64, buf []byte) (n int, err error) } |