Merge branch 'master' of github.com:code4craft/webmagic
commit
a2e7f0004b
|
@ -586,6 +586,7 @@ public class Spider implements Runnable, Task {
|
||||||
if (threadNum <= 0) {
|
if (threadNum <= 0) {
|
||||||
throw new IllegalArgumentException("threadNum should be more than one!");
|
throw new IllegalArgumentException("threadNum should be more than one!");
|
||||||
}
|
}
|
||||||
|
this.executorService = executorService;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue