AmplicaLabs / content-watcher-service

A Gateway microservice that watches for content on Frequency
https://amplicalabs.github.io/content-watcher-service/
Apache License 2.0
1 stars 0 forks source link

make reset/pause/restart scan work correctly #61

Closed JoeCap08055 closed 1 month ago

JoeCap08055 commented 1 month ago

Description

Makes changing the current block number while the scan is paused work correctly.

Refactors the scan loop a bit to make more compact & readable, as well as to be able to honor scan reset requests even if a scan is in-progress.