[#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:
Leonard Lyubich 2021-03-15 14:22:10 +03:00 committed by Alex Vanin
parent 4640099a67
commit e6cde0ab28

View file

@ -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
}