[#1418] shard: Do not use pointers as parameters
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
e265ce2d52
commit
6e752f36dc
39 changed files with 205 additions and 161 deletions
|
@ -46,8 +46,11 @@ func TestHeadRaw(t *testing.T) {
|
|||
e := testNewEngineWithShards(s1, s2)
|
||||
defer e.Close()
|
||||
|
||||
putPrmLeft := new(shard.PutPrm).WithObject(child)
|
||||
putPrmLink := new(shard.PutPrm).WithObject(link)
|
||||
var putPrmLeft shard.PutPrm
|
||||
putPrmLeft.WithObject(child)
|
||||
|
||||
var putPrmLink shard.PutPrm
|
||||
putPrmLink.WithObject(link)
|
||||
|
||||
// put most left object in one shard
|
||||
_, err := s1.Put(putPrmLeft)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue