[#243] services/object: Share common parameters across services
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a01262d8bd
commit
fb50362dcc
12 changed files with 89 additions and 163 deletions
|
@ -60,7 +60,7 @@ func (exec execCtx) isLocal() bool {
|
|||
}
|
||||
|
||||
func (exec *execCtx) key() *ecdsa.PrivateKey {
|
||||
return exec.prm.key
|
||||
return exec.prm.common.PrivateKey()
|
||||
}
|
||||
|
||||
func (exec *execCtx) address() *objectSDK.Address {
|
||||
|
@ -76,7 +76,7 @@ func (exec *execCtx) commonParameters() *util.CommonPrm {
|
|||
}
|
||||
|
||||
func (exec execCtx) callOptions() []client.CallOption {
|
||||
return exec.prm.callOpts
|
||||
return exec.prm.common.RemoteCallOptions()
|
||||
}
|
||||
|
||||
func (exec *execCtx) newAddress(id *objectSDK.ID) *objectSDK.Address {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue