forked from TrueCloudLab/frostfs-sdk-go
[#321] client: Set object ID field in Put
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
7578b54fac
commit
7537fa0dec
1 changed files with 7 additions and 0 deletions
|
@ -189,6 +189,13 @@ func (x *ObjectWriter) Close() (*ResObjectPut, error) {
|
|||
return nil, x.ctxCall.err
|
||||
}
|
||||
|
||||
if x.ctxCall.result != nil {
|
||||
x.ctxCall.result(x.ctxCall.resp)
|
||||
if x.ctxCall.err != nil {
|
||||
return nil, x.ctxCall.err
|
||||
}
|
||||
}
|
||||
|
||||
return x.ctxCall.statusRes.(*ResObjectPut), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue