Skip to content

Commit

Permalink
increased the throttle rate by factor of 5 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb authored Apr 14, 2019
1 parent d754c66 commit 0331c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebCrawler.Shared.IO/DownloadCoordinator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public DownloadCoordinator(CrawlJob job, IActorRef commander, IActorRef download
var selfDocSink = Sink.ActorRef<CompletedDocument>(Self, StreamCompleteTick.Instance);
var selfImgSink = Sink.ActorRef<CompletedDocument>(Self, StreamCompleteTick.Instance);
var htmlFlow = Flow.Create<CrawlDocument>().Via(DownloadFlow.SelectDocType())
.Throttle(30, TimeSpan.FromSeconds(1), 100, ThrottleMode.Shaping)
.Throttle(30, TimeSpan.FromSeconds(5), 100, ThrottleMode.Shaping)
.Via(DownloadFlow.ProcessHtmlDownloadFor(DefaultMaxConcurrentDownloads, HttpClientFactory.GetClient()));

var imageFlow = Flow.Create<CrawlDocument>()
Expand Down

0 comments on commit 0331c1c

Please sign in to comment.