forked from TrueCloudLab/frostfs-node
[#1418] blobovnicza: Do not use pointers as parameters
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
281befec67
commit
021aa97965
6 changed files with 7 additions and 7 deletions
|
@ -18,7 +18,7 @@ func testPutGet(t *testing.T, blz *Blobovnicza, addr oid.Address, sz uint64, ass
|
|||
data := make([]byte, sz)
|
||||
rand.Read(data)
|
||||
|
||||
pPut := new(PutPrm)
|
||||
var pPut PutPrm
|
||||
pPut.SetAddress(addr)
|
||||
pPut.SetMarshaledObject(data)
|
||||
_, err := blz.Put(pPut)
|
||||
|
@ -143,7 +143,7 @@ func TestIterateObjects(t *testing.T) {
|
|||
putPrm.SetAddress(oidtest.Address())
|
||||
putPrm.SetMarshaledObject(v)
|
||||
|
||||
_, err := blz.Put(&putPrm)
|
||||
_, err := blz.Put(putPrm)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue