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
|
@ -57,7 +57,7 @@ func benchmarkExists(b *testing.B, shardNum int) {
|
|||
addr := objecttest.Address()
|
||||
for i := 0; i < 100; i++ {
|
||||
obj := generateObjectWithCID(b, cidtest.ID())
|
||||
err := Put(e, obj.Object())
|
||||
err := Put(e, obj)
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ func testOID() *oidSDK.ID {
|
|||
return id
|
||||
}
|
||||
|
||||
func generateObjectWithCID(t testing.TB, cid *cid.ID) *object.RawObject {
|
||||
func generateObjectWithCID(t testing.TB, cid *cid.ID) *object.Object {
|
||||
version := version.New()
|
||||
version.SetMajor(2)
|
||||
version.SetMinor(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue