diff --git a/internal/neofs/neofs.go b/internal/neofs/neofs.go index 37ebb8e..8c0aabb 100644 --- a/internal/neofs/neofs.go +++ b/internal/neofs/neofs.go @@ -207,9 +207,12 @@ func (x *NeoFS) ContainerEACL(ctx context.Context, id cid.ID) (*eacl.Table, erro func (x *NeoFS) DeleteContainer(ctx context.Context, id cid.ID, token *session.Container) error { var prm pool.PrmContainerDelete prm.SetContainerID(id) - prm.SetSessionToken(*token) prm.SetWaitParams(x.await) + if token != nil { + prm.SetSessionToken(*token) + } + err := x.pool.DeleteContainer(ctx, prm) if err != nil { return fmt.Errorf("delete container via connection pool: %w", err)