Use fasthttp.PipelineClient

This commit is contained in:
Richard Patel
2019-02-09 16:46:36 +01:00
parent b18b70f798
commit d69cd4400e
5 changed files with 46 additions and 23 deletions

View File

@@ -25,6 +25,9 @@ func Schedule(c context.Context, remotes <-chan *OD) {
logrus.WithField("url", remote.BaseUri.String()).
Info("Starting crawler")
// Create HTTP client
remote.WCtx.Prepare()
// Collect results
results := make(chan File)