[#1392] object: Fix target initialization within put streamer
All checks were successful
DCO action / DCO (pull_request) Successful in 2m2s
Tests and linters / Run gofumpt (pull_request) Successful in 2m14s
Vulncheck / Vulncheck (pull_request) Successful in 2m50s
Tests and linters / Tests (pull_request) Successful in 3m5s
Tests and linters / Staticcheck (pull_request) Successful in 3m39s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m50s
Build / Build Components (pull_request) Successful in 3m54s
Tests and linters / gopls check (pull_request) Successful in 4m19s
Tests and linters / Lint (pull_request) Successful in 5m4s
Tests and linters / Tests with -race (pull_request) Successful in 7m24s
All checks were successful
DCO action / DCO (pull_request) Successful in 2m2s
Tests and linters / Run gofumpt (pull_request) Successful in 2m14s
Vulncheck / Vulncheck (pull_request) Successful in 2m50s
Tests and linters / Tests (pull_request) Successful in 3m5s
Tests and linters / Staticcheck (pull_request) Successful in 3m39s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m50s
Build / Build Components (pull_request) Successful in 3m54s
Tests and linters / gopls check (pull_request) Successful in 4m19s
Tests and linters / Lint (pull_request) Successful in 5m4s
Tests and linters / Tests with -race (pull_request) Successful in 7m24s
* Remove `relay` field from put streamer as it's no longer used; * Fix initialization of `Relay` object writer parameter. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
d4bec24c9f
commit
7c56564b81
1 changed files with 1 additions and 4 deletions
|
@ -5,7 +5,6 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/client"
|
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object/common/target"
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object/common/target"
|
||||||
objectwriter "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object/common/writer"
|
objectwriter "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/object/common/writer"
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/transformer"
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/transformer"
|
||||||
|
@ -15,8 +14,6 @@ type Streamer struct {
|
||||||
*objectwriter.Config
|
*objectwriter.Config
|
||||||
|
|
||||||
target transformer.ChunkedObjectWriter
|
target transformer.ChunkedObjectWriter
|
||||||
|
|
||||||
relay func(context.Context, client.NodeInfo, client.MultiAddressClient) error
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var errNotInit = errors.New("stream not initialized")
|
var errNotInit = errors.New("stream not initialized")
|
||||||
|
@ -35,7 +32,7 @@ func (p *Streamer) Init(ctx context.Context, prm *PutInitPrm) error {
|
||||||
Header: prm.hdr,
|
Header: prm.hdr,
|
||||||
Container: prm.cnr,
|
Container: prm.cnr,
|
||||||
TraverseOpts: prm.traverseOpts,
|
TraverseOpts: prm.traverseOpts,
|
||||||
Relay: p.relay,
|
Relay: prm.relay,
|
||||||
}
|
}
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
Loading…
Reference in a new issue