Skip to content

Commit 5751681

Browse files
committed
Common the downloader status process and pass error information when onError
1 parent 7a62a6c commit 5751681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webmagic-samples/src/main/java/us/codecraft/webmagic/samples/PhantomJSPageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public Site getSite() {
3636
}
3737

3838
public static void main(String[] args) throws Exception {
39-
PhantomJSDownloader phantomDownloader = new PhantomJSDownloader().setRetryNum(3);
39+
PhantomJSDownloader phantomDownloader = new PhantomJSDownloader();
4040

4141
CollectorPipeline<ResultItems> collectorPipeline = new ResultItemsCollectorPipeline();
4242

0 commit comments

Comments
 (0)