2017-12-19 02:02:17 +00:00
|
|
|
// +build !ent
|
2017-12-19 02:04:42 +00:00
|
|
|
|
2017-12-19 02:02:17 +00:00
|
|
|
package consul
|
|
|
|
|
|
|
|
import "github.com/hashicorp/consul/agent/consul/autopilot"
|
|
|
|
|
|
|
|
func (s *Server) initAutopilot(config *Config) {
|
|
|
|
apDelegate := &AutopilotDelegate{s}
|
|
|
|
s.autopilot = autopilot.NewAutopilot(s.logger, apDelegate, config.AutopilotInterval, config.ServerHealthInterval)
|
|
|
|
}
|