[#1559] shard: Use Set
prefix for parameter setting
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
7b882b26d8
commit
d8ba954aff
34 changed files with 114 additions and 142 deletions
|
@ -80,8 +80,8 @@ func (e *StorageEngine) head(prm HeadPrm) (HeadRes, error) {
|
|||
)
|
||||
|
||||
var shPrm shard.HeadPrm
|
||||
shPrm.WithAddress(prm.addr)
|
||||
shPrm.WithRaw(prm.raw)
|
||||
shPrm.SetAddress(prm.addr)
|
||||
shPrm.SetRaw(prm.raw)
|
||||
|
||||
e.iterateOverSortedShards(prm.addr, func(_ int, sh hashedShard) (stop bool) {
|
||||
res, err := sh.Head(shPrm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue