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

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
}