Remove unnecessary copy

This commit is contained in:
Alex Dadgar 2015-11-23 16:36:12 -08:00
parent 9b99eeeec4
commit 9801db55b3

View file

@ -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,