fix: maybeConfigureCluster called in the wrong place
This commit is contained in:
parent
fcf43e1f79
commit
586a6dc205
|
@ -65,6 +65,11 @@ func NewManager() (*Manager, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
err = m.maybeConfigureCluster()
|
||||
if err != nil {
|
||||
return m, err
|
||||
}
|
||||
|
||||
return m, nil
|
||||
}
|
||||
|
||||
|
@ -87,11 +92,6 @@ func (m *Manager) ConfigureProtocol(name string, cfg ProtocolConfig) error {
|
|||
return err
|
||||
}
|
||||
|
||||
err = m.maybeConfigureCluster()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue