TREEcg / event-stream-client

Deprecated! Use the rdf-connect/ldes-client instead
https://github.com/rdf-connect/ldes-client
Other
14 stars 9 forks source link

Emit an event when "only in syncing mode" #46

Closed KasperZutterman closed 2 years ago

KasperZutterman commented 2 years ago

When adding unprocessed pages to the bookkeeper we use this.bookkeeper.addFragment(url, 0); and when the page is processed but not final (cache not set to immutable) is is added like this: this.bookkeeper.addFragment(url, nextFetchTime);

We should emit a now only syncing when the refetchTime from the bookkeeper queue first element is later then the current time.