open-consul/agent/consul/autopilot_oss.go

11 lines
296 B
Go
Raw Normal View History

// +build !ent
2017-12-19 02:04:42 +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)
}