forked from TrueCloudLab/frostfs-node
[#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
|
@ -17,13 +17,9 @@ type ExistsRes struct {
|
|||
ex bool
|
||||
}
|
||||
|
||||
// WithAddress is an Exists option to set object checked for existence.
|
||||
func (p *ExistsPrm) WithAddress(addr oid.Address) *ExistsPrm {
|
||||
if p != nil {
|
||||
p.addr = addr
|
||||
}
|
||||
|
||||
return p
|
||||
// SetAddress is an Exists option to set object checked for existence.
|
||||
func (p *ExistsPrm) SetAddress(addr oid.Address) {
|
||||
p.addr = addr
|
||||
}
|
||||
|
||||
// Exists returns the fact that the object is in the shard.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue