Remove unnecessary copy
This commit is contained in:
parent
9b99eeeec4
commit
9801db55b3
|
@ -188,7 +188,7 @@ OUTER:
|
||||||
|
|
||||||
// Check if we need a network resource
|
// Check if we need a network resource
|
||||||
if len(taskResources.Networks) > 0 {
|
if len(taskResources.Networks) > 0 {
|
||||||
ask := taskResources.Networks[0].Copy()
|
ask := taskResources.Networks[0]
|
||||||
offer, err := netIdx.AssignNetwork(ask)
|
offer, err := netIdx.AssignNetwork(ask)
|
||||||
if offer == nil {
|
if offer == nil {
|
||||||
iter.ctx.Metrics().ExhaustedNode(option.Node,
|
iter.ctx.Metrics().ExhaustedNode(option.Node,
|
||||||
|
|
Loading…
Reference in a new issue