github.phpd.cn/hashicorp/consul@v1.4.5/agent/consul/autopilot_oss.go (about)

     1  // +build !ent
     2  
     3  package consul
     4  
     5  import "github.com/hashicorp/consul/agent/consul/autopilot"
     6  
     7  func (s *Server) initAutopilot(config *Config) {
     8  	apDelegate := &AutopilotDelegate{s}
     9  	s.autopilot = autopilot.NewAutopilot(s.logger, apDelegate, config.AutopilotInterval, config.ServerHealthInterval)
    10  }