forked from TrueCloudLab/frostfs-node
[#1786] engine: Unify parameter setters
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
b064fb24d8
commit
5321f8ef9c
7 changed files with 16 additions and 42 deletions
|
@ -23,9 +23,7 @@ var errPutShard = errors.New("could not put object to any shard")
|
|||
//
|
||||
// Option is required.
|
||||
func (p *PutPrm) WithObject(obj *objectSDK.Object) {
|
||||
if p != nil {
|
||||
p.obj = obj
|
||||
}
|
||||
p.obj = obj
|
||||
}
|
||||
|
||||
// Put saves the object to local storage.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue