diff --git a/pool/pool.go b/pool/pool.go index 6be6ce4..e0639f0 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -820,6 +820,8 @@ func (p *pool) DeleteObject(ctx context.Context, addr address.Address, opts ...C prm.ByID(*obj) } + prm.UseKey(*cc.key) + return p.callWithRetry(&cc, func() error { _, err := cc.client.ObjectDelete(ctx, prm) if err != nil { @@ -919,6 +921,8 @@ func (p *pool) HeadObject(ctx context.Context, addr address.Address, opts ...Cal prm.ByID(*obj) } + prm.UseKey(*cc.key) + var obj object.Object err = p.callWithRetry(&cc, func() error {