mirror of
https://github.com/status-im/consul.git
synced 2025-02-04 09:55:49 +00:00
20 lines
290 B
Go
20 lines
290 B
Go
// +build !ent
|
|
|
|
package agent
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
)
|
|
|
|
func ValidateSegments(conf *Config) error {
|
|
if conf.Segment != "" {
|
|
return structs.ErrSegmentsNotSupported
|
|
}
|
|
|
|
if len(conf.Segments) > 0 {
|
|
return structs.ErrSegmentsNotSupported
|
|
}
|
|
|
|
return nil
|
|
}
|