1cef3c99c2
Also re-enabled some tests that had to be disabled in the prior PR.
24 lines
450 B
Go
24 lines
450 B
Go
// +build !consulent
|
|
|
|
package state
|
|
|
|
import "github.com/hashicorp/consul/agent/structs"
|
|
|
|
func (nst nodeServiceTuple) nodeTuple() nodeTuple {
|
|
return nodeTuple{Node: nst.Node, Partition: ""}
|
|
}
|
|
|
|
func newNodeTupleFromNode(node *structs.Node) nodeTuple {
|
|
return nodeTuple{
|
|
Node: node.Node,
|
|
Partition: "",
|
|
}
|
|
}
|
|
|
|
func newNodeTupleFromHealthCheck(hc *structs.HealthCheck) nodeTuple {
|
|
return nodeTuple{
|
|
Node: hc.Node,
|
|
Partition: "",
|
|
}
|
|
}
|