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
if len(taskResources.Networks) > 0 {
ask := taskResources.Networks[0].Copy()
ask := taskResources.Networks[0]
offer, err := netIdx.AssignNetwork(ask)
if offer == nil {
iter.ctx.Metrics().ExhaustedNode(option.Node,