chore: ensure consistent file naming for non-enterprise files.

This commit is contained in:
James Rasell
2022-01-13 11:32:16 +01:00
parent 6b488bdad3
commit e961751d94
4 changed files with 10 additions and 10 deletions

View File

@@ -5,6 +5,6 @@ package nomad
// allocQuota returns the quota object associated with the allocation. In
// anything but Premium this will always be empty
func (n *nomadFSM) allocQuota(allocID string) (string, error) {
func (n *nomadFSM) allocQuota(_ string) (string, error) {
return "", nil
}

View File

@@ -23,6 +23,6 @@ func refreshIndex(snap *state.StateSnapshot) (uint64, error) {
}
// evaluatePlanQuota returns whether the plan would be over quota
func evaluatePlanQuota(snap *state.StateSnapshot, plan *structs.Plan) (bool, error) {
func evaluatePlanQuota(_ *state.StateSnapshot, _ *structs.Plan) (bool, error) {
return false, nil
}

View File

@@ -1,8 +0,0 @@
//go:build !ent
// +build !ent
package scheduler
func NewQuotaIterator(ctx Context, source FeasibleIterator) FeasibleIterator {
return source
}

8
scheduler/stack_oss.go Normal file
View File

@@ -0,0 +1,8 @@
//go:build !ent
// +build !ent
package scheduler
func NewQuotaIterator(_ Context, source FeasibleIterator) FeasibleIterator {
return source
}