Skip to content

Commit

Permalink
neofs: Use slicer SetPayloadSize option
Browse files Browse the repository at this point in the history
Closes #921.

Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Feb 7, 2024
1 parent fa57757 commit f76190c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/neofs/neofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ func (x *NeoFS) CreateObject(ctx context.Context, prm layer.PrmObjectCreate) (oi
opts.SetObjectPayloadLimit(uint64(x.cfg.MaxObjectSize))
opts.SetCopiesNumber(prm.CopiesNumber)
opts.SetCurrentNeoFSEpoch(x.epochGetter.CurrentEpoch())
opts.SetPayloadSize(prm.PayloadSize)

Check warning on line 291 in internal/neofs/neofs.go

View check run for this annotation

Codecov / codecov/patch

internal/neofs/neofs.go#L291

Added line #L291 was not covered by tests

data := x.buffers.Get()
chunk := data.(*[]byte)
Expand Down

0 comments on commit f76190c

Please sign in to comment.