1// +build !consulent
2
3package agent
4
5import (
6	"github.com/hashicorp/consul/api"
7	autopilot "github.com/hashicorp/raft-autopilot"
8)
9
10func autopilotToAPIServerEnterprise(_ *autopilot.ServerState, _ *api.AutopilotServer) {
11	// noop in oss
12}
13
14func autopilotToAPIStateEnterprise(state *autopilot.State, apiState *api.AutopilotState) {
15	// without the enterprise features there is no different between these two and we don't want to
16	// alarm anyone by leaving this as the zero value.
17	apiState.OptimisticFailureTolerance = state.FailureTolerance
18}
19