pgraph: Use the correct vertex handle to prevent a race

Small typo made that is now fixed! These need to get caught with golint!
This commit is contained in:
James Shubin
2017-05-13 10:08:38 -04:00
parent 0af9af44e5
commit 4bb553e015

View File

@@ -717,7 +717,7 @@ func (g *Graph) Start(first bool) { // start or continue
// see: https://ttboj.wordpress.com/2015/07/27/golang-parallelism-issues-causing-too-many-open-files-error/
go func(vv *Vertex) {
defer g.wg.Done()
defer v.Res.Reset()
defer vv.Res.Reset()
// TODO: if a sufficient number of workers error,
// should something be done? Should these restart
// after perma-failure if we have a graph change?