83bf7ab3ff
This should let freshly recompiled golangci-lint binaries using Go 1.17 pass 'make lint'
25 lines
472 B
Go
25 lines
472 B
Go
//go:build !consulent
|
|
// +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: "",
|
|
}
|
|
}
|