mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
oops handle nil
This commit is contained in:
parent
749dcd6970
commit
fb11895985
1 changed files with 2 additions and 0 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue