From 7537fa0decc5a7ed7795a5e3bc89576bb3209f30 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 24 Aug 2022 16:25:54 +0300 Subject: [PATCH] [#321] client: Set object ID field in `Put` Signed-off-by: Evgenii Stratonikov --- client/object_put.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/object_put.go b/client/object_put.go index 24a55397..c5badc41 100644 --- a/client/object_put.go +++ b/client/object_put.go @@ -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 }