neofs: drop PrepareObjectOnsite option

It's using NeoFS node internal packages which shouldn't ever be used in gate
code, it's not adding any value to the code we have (standard api-go
interfaces work fine).
This commit is contained in:
Roman Khimov 2021-04-23 16:14:17 +03:00 committed by Roman Khimov
parent b020cd6652
commit 464a0134bd
4 changed files with 24 additions and 162 deletions

View file

@ -111,7 +111,6 @@ func (u *Uploader) Upload(c *fasthttp.RequestCtx) {
putOpts.BearerToken = bt
putOpts.ContainerID = cid
putOpts.OwnerID = oid
putOpts.PrepareObjectOnsite = false
putOpts.Reader = file
if addr, err = u.plant.Object().Put(c, putOpts); err != nil {
log.Error("could not store file in neofs", zap.Error(err))