2023-03-28 18:39:22 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
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
|
|
|
}
|