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>support/v0.27
parent
4640099a67
commit
e6cde0ab28
|
@ -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 New Issue