forked from TrueCloudLab/frostfs-node
[#1181] Do not use deprecated elements
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e3f4e48d87
commit
323dea95c6
6 changed files with 10 additions and 10 deletions
|
@ -143,12 +143,12 @@ func TestBlobstorFailback(t *testing.T) {
|
|||
obj := generateObjectWithCID(t, cidtest.ID())
|
||||
obj.SetPayload(make([]byte, size))
|
||||
|
||||
prm := new(shard.PutPrm).WithObject(obj.Object())
|
||||
prm := new(shard.PutPrm).WithObject(obj)
|
||||
e.mtx.RLock()
|
||||
_, err = e.shards[id[0].String()].Shard.Put(prm)
|
||||
e.mtx.RUnlock()
|
||||
require.NoError(t, err)
|
||||
objs = append(objs, obj.Object())
|
||||
objs = append(objs, obj)
|
||||
}
|
||||
|
||||
for i := range objs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue