[#422] pkg/services: Cache clients by address only
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
55dec28bbb
commit
cc7287d6f7
19 changed files with 55 additions and 68 deletions
|
@ -116,6 +116,13 @@ func WithNetmapEpoch(v uint64) DynamicCallOption {
|
|||
}
|
||||
}
|
||||
|
||||
// WithKey sets key to use for the request.
|
||||
func WithKey(key *ecdsa.PrivateKey) DynamicCallOption {
|
||||
return func(o *remoteCallOpts) {
|
||||
o.opts = append(o.opts, client.WithKey(key))
|
||||
}
|
||||
}
|
||||
|
||||
func (p *CommonPrm) SessionToken() *token.SessionToken {
|
||||
if p != nil {
|
||||
return p.token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue