Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
severinson committed Jun 22, 2023
1 parent 7e1ce11 commit 6e5d741
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/armada/server/lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,11 @@ const (
subtract
)

func updateAllocatedByQueueAndPriorityClass[T interfaces.LegacySchedulerJob](allocatedByQueueAndPriorityClass map[string]schedulerobjects.QuantityByTAndResourceType[string], op addOrSubtract, jobs []T) map[string]schedulerobjects.QuantityByTAndResourceType[string] {
func updateAllocatedByQueueAndPriorityClass[T interfaces.LegacySchedulerJob](
allocatedByQueueAndPriorityClass map[string]schedulerobjects.QuantityByTAndResourceType[string],
op addOrSubtract,
jobs []T,
) map[string]schedulerobjects.QuantityByTAndResourceType[string] {
if allocatedByQueueAndPriorityClass == nil {
allocatedByQueueAndPriorityClass = make(map[string]schedulerobjects.QuantityByTAndResourceType[string], 256)
}
Expand Down

0 comments on commit 6e5d741

Please sign in to comment.