mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 15:51:01 +00:00
removed invalid state (#2173)
This commit is contained in:
parent
0300cb071f
commit
177db2e2b5
1 changed files with 5 additions and 3 deletions
|
|
@ -482,10 +482,12 @@ func (e *Etcd) Leader() *disco.Peer {
|
|||
}
|
||||
|
||||
func (e *Etcd) ClusterState(ctx context.Context) (out disco.ClusterState, err error) {
|
||||
if e.e == nil {
|
||||
return disco.ClusterStateUnknown, nil
|
||||
if len(e.options.EtcdHosts) == 0 {
|
||||
// only valid if not in external etcd mode
|
||||
if e.e == nil {
|
||||
return disco.ClusterStateUnknown, nil
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
heartbeats int = 0
|
||||
starting bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue