forked from TrueCloudLab/frostfs-node
[#957] services/object: Refactor usage of NeoFS API client
The client needs of the Object service are limited and change not often. Interface changes of the client library should not affect the operation of various service packages, if they do not change their requirements for the provided functionality. To localize the use of the base client and facilitate further support, an auxiliary package is implemented that will only be used by the Object service. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
bbc2b873ab
commit
b3708fc530
15 changed files with 511 additions and 204 deletions
|
@ -60,11 +60,11 @@ func (exec execCtx) isLocal() bool {
|
|||
}
|
||||
|
||||
func (exec *execCtx) address() *objectSDK.Address {
|
||||
return exec.prm.Address()
|
||||
return exec.prm.addr
|
||||
}
|
||||
|
||||
func (exec *execCtx) containerID() *cid.ID {
|
||||
return exec.prm.Address().ContainerID()
|
||||
return exec.prm.addr.ContainerID()
|
||||
}
|
||||
|
||||
func (exec *execCtx) commonParameters() *util.CommonPrm {
|
||||
|
@ -264,7 +264,7 @@ func (exec *execCtx) saveTombstone() bool {
|
|||
exec.status = statusOK
|
||||
exec.err = nil
|
||||
|
||||
exec.prm.TombstoneAddressTarget().
|
||||
exec.prm.tombAddrWriter.
|
||||
SetAddress(exec.newAddress(id))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue