object: Make patch not set key before target construction #1458
1 changed files with 3 additions and 4 deletions
|
@ -113,10 +113,9 @@ func (s *Streamer) init(ctx context.Context, req *objectV2.PatchRequest) error {
|
||||||
oV2.GetHeader().SetOwnerID(ownerID)
|
oV2.GetHeader().SetOwnerID(ownerID)
|
||||||
|
|
||||||
target, err := target.New(objectwriter.Params{
|
target, err := target.New(objectwriter.Params{
|
||||||
Config: s.Config,
|
Config: s.Config,
|
||||||
Common: commonPrm,
|
Common: commonPrm,
|
||||||
Header: objectSDK.NewFromV2(oV2),
|
Header: objectSDK.NewFromV2(oV2),
|
||||||
SignRequestPrivateKey: s.localNodeKey,
|
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("target creation: %w", err)
|
return fmt.Errorf("target creation: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue