diff --git a/crawler4j-frontier/crawler4j-frontier-urlfrontier/src/main/java/de/hshn/mi/crawler4j/frontier/URLFrontierAdapter.java b/crawler4j-frontier/crawler4j-frontier-urlfrontier/src/main/java/de/hshn/mi/crawler4j/frontier/URLFrontierAdapter.java index cc24f043e..991bfd714 100644 --- a/crawler4j-frontier/crawler4j-frontier-urlfrontier/src/main/java/de/hshn/mi/crawler4j/frontier/URLFrontierAdapter.java +++ b/crawler4j-frontier/crawler4j-frontier-urlfrontier/src/main/java/de/hshn/mi/crawler4j/frontier/URLFrontierAdapter.java @@ -76,10 +76,10 @@ public void scheduleAll(List urls) { final AtomicBoolean completed = new AtomicBoolean(false); int sent = 0; - StreamObserver responseObserver = + StreamObserver 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); } @@ -202,10 +202,10 @@ public void setProcessed(WebURL webURL) { if (webURL instanceof URLFrontierWebURLImpl) { URLFrontierWebURLImpl url = (URLFrontierWebURLImpl) webURL; - final StreamObserver responseObserver = + final StreamObserver 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); }