forked from TrueCloudLab/frostfs-node
[#425] client cache: fix the passing of arguments to Client constructor
Private key was removed from Client constructor New recently. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4640099a67
commit
e6cde0ab28
1 changed files with 1 additions and 1 deletions
2
pkg/network/cache/client.go
vendored
2
pkg/network/cache/client.go
vendored
|
@ -47,7 +47,7 @@ func (c *ClientCache) Get(address string) (*client.Client, error) {
|
|||
return cli, nil
|
||||
}
|
||||
|
||||
cli, err := client.New(nil, append(c.opts, client.WithAddress(address))...)
|
||||
cli, err := client.New(append(c.opts, client.WithAddress(address))...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue