Timeout and results saving

This commit is contained in:
Richard Patel
2018-11-15 20:14:31 +01:00
parent a268c6dbcf
commit ffde1a9e5d
7 changed files with 86 additions and 38 deletions

View File

@@ -61,7 +61,13 @@ func cmdCrawler(clic *cli.Context) error {
u.Path += "/"
}
if err != nil { return err }
remotes[i] = &OD{ BaseUri: u }
remotes[i] = &OD {
Task: &Task{
WebsiteId: 0,
Url: u.String(),
},
BaseUri: u,
}
}
c := context.Background()