oops handle nil

This commit is contained in:
Seebs 2022-01-19 17:09:57 -06:00
parent 749dcd6970
commit fb11895985

View file

@ -210,6 +210,8 @@ func (e *Etcd) retryClient(fn func(cli *clientv3.Client) error) (err error) {
e.cli = cli
e.cliMu.Unlock()
break
case nil:
return nil
default:
msg := err.Error()
if !strings.HasPrefix(msg, "etcdserver: request timed out") {