Skip to content

Commit

Permalink
Upgrade URLFrontier to v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rzo1 committed Jun 7, 2022
1 parent 913d893 commit 9bd4796
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ public void scheduleAll(List<WebURL> urls) {
final AtomicBoolean completed = new AtomicBoolean(false);
int sent = 0;

StreamObserver<Urlfrontier.String> responseObserver =
StreamObserver<crawlercommons.urlfrontier.Urlfrontier.AckMessage> responseObserver =
new StreamObserver<>() {
@Override
public void onNext(crawlercommons.urlfrontier.Urlfrontier.String value) {
public void onNext(crawlercommons.urlfrontier.Urlfrontier.AckMessage value) {
// receives confirmation that the value has been received
acked.addAndGet(1);
}
Expand Down Expand Up @@ -202,10 +202,10 @@ public void setProcessed(WebURL webURL) {
if (webURL instanceof URLFrontierWebURLImpl) {
URLFrontierWebURLImpl url = (URLFrontierWebURLImpl) webURL;

final StreamObserver<Urlfrontier.String> responseObserver =
final StreamObserver<crawlercommons.urlfrontier.Urlfrontier.AckMessage> responseObserver =
new StreamObserver<>() {
@Override
public void onNext(crawlercommons.urlfrontier.Urlfrontier.String value) {
public void onNext(crawlercommons.urlfrontier.Urlfrontier.AckMessage value) {
// receives confirmation that the value has been received
completedPages.addAndGet(1);
}
Expand Down

0 comments on commit 9bd4796

Please sign in to comment.