We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
方法代码:
public Spider setScheduler(Scheduler updateScheduler) { checkIfRunning(); //此处存在问题,这样会导致直接将内部的scheduler设置为updateScheduler,然后又尝试自己poll自己进行数据迁徙 SpiderScheduler oldScheduler = this.scheduler; //应该修改为下面这样 //Scheduler oldScheduler = scheduler.getScheduler(); scheduler.setScheduler(updateScheduler); Request request; while ((request = oldScheduler.poll(this)) != null) { System.out.println("move oldScheduler task to updateScheduler"); this.scheduler.push(request, this); } return this; }
The text was updated successfully, but these errors were encountered:
code4craft#1172 问题的解决
582ea6e
#1172 问题的解决 (#1173)
2c135da
Co-authored-by: xiezhicheng <[email protected]>
No branches or pull requests
方法代码:
The text was updated successfully, but these errors were encountered: