commit | 0e15f8935157e722053c261fa6407f51e63536c5 | [log] [tgz] |
---|---|---|
author | Francesc Campoy <campoy@golang.org> | Tue Oct 30 16:36:04 2012 -0700 |
committer | Francesc Campoy <campoy@golang.org> | Tue Oct 30 16:36:04 2012 -0700 |
tree | 7484603f4e0cfb448dedf922976250f366feb519 | |
parent | 19ab4a16dcb99415efb3a3de3ae2139db8a74fc4 [diff] |
go-tour: Fixing webcrawler solution. Fixes #45 R=adg, r CC=golang-dev https://golang.org/cl/6823054
diff --git a/gotour/solutions/webcrawler.go b/gotour/solutions/webcrawler.go index ec09a99..98074ce 100644 --- a/gotour/solutions/webcrawler.go +++ b/gotour/solutions/webcrawler.go
@@ -61,7 +61,7 @@ for i, u := range urls { fmt.Printf("-> Crawling child %v/%v of %v : %v.\n", i, len(urls), url, u) go func(url string) { - Crawl(url, depth, fetcher) + Crawl(url, depth-1, fetcher) done <- true }(u) }