[#1418] blobovnicza: Do not use pointers as parameters

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-05-23 17:21:14 +03:00 committed by fyrchik
parent 281befec67
commit 021aa97965
6 changed files with 7 additions and 7 deletions

View file

@ -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)