2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-13 23:36:00 +00:00
R.B. Boyer 1e02460bd1
re-run gofmt on 1.17 ()
This should let freshly recompiled golangci-lint binaries using Go 1.17
pass 'make lint'
2021-11-16 12:04:01 -06:00

19 lines
334 B
Go

//go:build !consulent
// +build !consulent
package config
import (
"github.com/hashicorp/consul/agent/structs"
)
func (b *builder) validateSegments(rt RuntimeConfig) error {
if rt.SegmentName != "" {
return structs.ErrSegmentsNotSupported
}
if len(rt.Segments) > 0 {
return structs.ErrSegmentsNotSupported
}
return nil
}