2019-05-01 15:11:27 +00:00
|
|
|
// +build !consulent
|
2017-12-19 02:04:42 +00:00
|
|
|
|
2017-12-19 02:02:17 +00:00
|
|
|
package consul
|
|
|
|
|
2020-09-25 17:46:38 +00:00
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/agent/metadata"
|
|
|
|
autopilot "github.com/hashicorp/raft-autopilot"
|
|
|
|
)
|
2017-12-19 02:02:17 +00:00
|
|
|
|
2020-09-25 17:46:38 +00:00
|
|
|
func (s *Server) autopilotPromoter() autopilot.Promoter {
|
|
|
|
return autopilot.DefaultPromoter()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_ *Server) autopilotServerExt(_ *metadata.Server) interface{} {
|
|
|
|
return nil
|
2017-12-19 02:02:17 +00:00
|
|
|
}
|