sigee commented on code in PR #2000:
URL: https://github.com/apache/stormcrawler/pull/2000#discussion_r3663538676
##########
core/src/main/java/org/apache/stormcrawler/bolt/FetcherBolt.java:
##########
@@ -677,6 +680,12 @@ public void run() {
msg);
if (force) {
fiq.crawlDelay = maxCrawlDelay;
+ // report the delay the fetcher is not
holding, so a frontier-side
+ // consumer can enforce it at the source (#867)
+ robotsCrawlDelaySecs =
+ Long.toString(1L +
((rules.getCrawlDelay() - 1L) / 1000L));
Review Comment:
Minor: The ceiling-division formula is duplicated in `FetcherBolt` and
`SimpleFetcherBolt`, which may be good to factored into a shared helper.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]