Skip to content

Commit

Permalink
Fixed filereading issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pelaohxc committed Jul 15, 2020
1 parent e2bc3b0 commit 13c5c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ func main() {
for i:=0;i<len(urls);i++{
wg.Add(1)
go func(i int) {
defer wg.Done()
url := urls[i]
data, err := fetchURL(url)
if err != nil{
return
}
checkPostMessage(data, url)
defer wg.Done()
}(i)
}
wg.Wait()
Expand Down

0 comments on commit 13c5c44

Please sign in to comment.