~ecs/hq

c37556d909d87a8fe6837431be096dd32305adca — Eyal Sawady 17 days ago 9ce1791
Send input datum from a separate goroutine

Fixes some deadlocks
1 files changed, 4 insertions(+), 2 deletions(-)

M main.go
M main.go => main.go +4 -2
@@ 154,8 154,10 @@ func main() {
			os.Exit(1)
		}
	}()
	in <- Datum{HTML: root}
	close(in)
	go func() {
		in <- Datum{HTML: root}
		close(in)
	}()

	for d := range out {
		if d.HTML != nil {