dennis-tra / nebula

🌌 A network agnostic DHT crawler, monitor, and measurement tool that exposes timely information about DHT networks.
Apache License 2.0
294 stars 30 forks source link

fix: crawlID should not be n-1 during ensurePartition #70

Closed kasteph closed 2 months ago

kasteph commented 2 months ago

As far as I understand, the db initialization happens at the start of the crawl.

When the db is initialized, this is where the ensurePartitions happens. However, for each start of the crawl, we do not have the current crawl ID until after the crawl actually starts, so the previous crawl ID is the max ID.