dag: cleanup some code that had no effect anymore
This commit is contained in:
parent
6366488809
commit
07ce5a7624
|
@ -173,13 +173,9 @@ func (w *Walker) Update(g *Graph) {
|
||||||
info := &walkerVertex{
|
info := &walkerVertex{
|
||||||
DoneCh: make(chan struct{}),
|
DoneCh: make(chan struct{}),
|
||||||
CancelCh: make(chan struct{}),
|
CancelCh: make(chan struct{}),
|
||||||
DepsCh: make(chan bool, 1),
|
|
||||||
deps: make(map[Vertex]chan struct{}),
|
deps: make(map[Vertex]chan struct{}),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pass dependencies immediately assuming we have no edges
|
|
||||||
info.DepsCh <- true
|
|
||||||
|
|
||||||
// Add it to the map and kick off the walk
|
// Add it to the map and kick off the walk
|
||||||
w.vertexMap[v] = info
|
w.vertexMap[v] = info
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue