mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
Merge pull request #1865 from molecula/wrapping-etcd-retry
add wrapping to differentiate etcd errors
This commit is contained in:
commit
34c64fbaba
1 changed files with 2 additions and 2 deletions
|
|
@ -227,12 +227,12 @@ func (e *Etcd) retryClient(fn func(cli *clientv3.Client) error) (err error) {
|
|||
break
|
||||
default:
|
||||
// nil, or an error we don't know about
|
||||
return err
|
||||
return errors.Wrap(err, "non-retryable error")
|
||||
}
|
||||
}
|
||||
// if we got here, we got a total of three of some combination of
|
||||
// ErrTimeout or ErrLeaderChanged, and we're giving up.
|
||||
return err
|
||||
return errors.Wrap(err, "exhausted all retries")
|
||||
}
|
||||
|
||||
func parseOptions(opt Options) *embed.Config {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue