[#1460] blobovnicza: Do not use pointers as the results
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
0e4a1beecf
commit
010253a97a
4 changed files with 12 additions and 12 deletions
|
@ -47,7 +47,7 @@ func (p *PutPrm) SetMarshaledObject(data []byte) {
|
|||
// Returns ErrFull if blobovnicza is filled.
|
||||
//
|
||||
// Should not be called in read-only configuration.
|
||||
func (b *Blobovnicza) Put(prm PutPrm) (*PutRes, error) {
|
||||
func (b *Blobovnicza) Put(prm PutPrm) (PutRes, error) {
|
||||
sz := uint64(len(prm.objData))
|
||||
bucketName := bucketForSize(sz)
|
||||
key := addressKey(prm.addr)
|
||||
|
@ -76,7 +76,7 @@ func (b *Blobovnicza) Put(prm PutPrm) (*PutRes, error) {
|
|||
b.incSize(sz)
|
||||
}
|
||||
|
||||
return nil, err
|
||||
return PutRes{}, err
|
||||
}
|
||||
|
||||
func addressKey(addr oid.Address) []byte {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue