open-consul/agent/consul/autopilot_oss.go
2020-11-09 09:22:11 -05:00

17 lines
326 B
Go

// +build !consulent
package consul
import (
"github.com/hashicorp/consul/agent/metadata"
autopilot "github.com/hashicorp/raft-autopilot"
)
func (s *Server) autopilotPromoter() autopilot.Promoter {
return autopilot.DefaultPromoter()
}
func (_ *Server) autopilotServerExt(_ *metadata.Server) interface{} {
return nil
}